Setup Problems

NCrunch fails to run when solution includes non-C# projects

Started by Pablo on 2,474 views

Hello! I'm new to NCrunch and I wasn't able to run it. Visual Studio runs tests normally without issues, however, NCrunch keeps telling me that some projects failed to build and thus won't run any tests.

One of the projects that allegedly fails to build according to NCrunch is a NodeJS project, and the other is a Sandcastle documentation project. These projects should be completely ignored because they aren't C# projects. Instead, NCrunch is stuck on them.

Again, Visual Studio can build and run the tests normally, and NCrunch can't. I looked for settings all over and could not find anything that helps.

If you need to take a look at the source code or solution, it's an open source project, and available here: https://github.com/integrativesoft/lara
Hi Pablo,

Thanks for taking NCrunch for a spin.

Those two projects need to be ignored. You can do this via the project level settings. You can open the NCrunch menu by right clicking the corner icon and selecting configuration. Navigate to the project and select Ignore this component completely. Documentation

There were some references to paths on your machine that I had to remove. On my machine this will get NCrunch to compile the solution.

To get the tests to run I had to make some tweaks to the code to discover Firefox. After this NCrunch ran all the tests. One caveat with the Selenium tests is that the driver will bring a window to the foreground. Maybe that's configurable, but I don't know enough about selenium to help you with that.

Post a reply

Log in to reply.