Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

NCrunch fails to run when solution includes non-C# projects
Pablo
#1 Posted : Friday, August 30, 2019 3:00:52 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/30/2019(UTC)
Posts: 1
Location: United States of America

Thanks: 1 times
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
michaelkroes
#2 Posted : Friday, August 30, 2019 6:11:11 PM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 277
Location: Netherlands

Thanks: 122 times
Was thanked: 62 time(s) in 59 post(s)
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.
1 user thanked michaelkroes for this useful post.
Pablo on 8/30/2019(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.033 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download