I have a solution which contains a number of different kinds of test projects - unit, integration, and WebDriver based UI automation tests. I'm really enjoying NCrunch, but it's proving quite frustrating when FireFox pops up to run the UI automation tests every time I type. :)
It would be ideal if I could set NCrunch to ignore that particular assembly when running tests. I definitely want the compilation and unit tests to run behind the scenes, but because of the impact of running the automated stuff (spinning up web servers, opening browsers, etc) it needs to be done manually.
Perhaps a solution-level configuration parameter could be added to exclude test assembly names, with wildcard matching?
Simon
Feature Suggestions
Prevent NCrunch running specific test projects within solution
Started by simon on 10,177 views
Remco NCrunch Developer
#218
17 Jun 2011 18:33 UTC
Hi Simon,
NCrunch does exactly this. In the tests window, you'll notice a button that allows you ignore a test. You can use this button at project level, thus ignoring all tests within the project. Under the hood, NCrunch uses a regular expression to perform a wildcard match on all tests within the project you've ignored ... in this way, new tests to the project will automatically be ignored.
I hope this helps.
Cheers,
Remco
NCrunch does exactly this. In the tests window, you'll notice a button that allows you ignore a test. You can use this button at project level, thus ignoring all tests within the project. Under the hood, NCrunch uses a regular expression to perform a wildcard match on all tests within the project you've ignored ... in this way, new tests to the project will automatically be ignored.
I hope this helps.
Cheers,
Remco
Thanks, that's worked. It seemed like I couldn't ignore the entire project - the button (in the NCrunch Tests window) gave no feedback and nothing appeared to change. It was only at the class/namespace level that I was able to select the ignore button with visible results. However, I've added new classes/namespaces to the same project and they are not being executed, so it's done the job.
Remco NCrunch Developer
#222
20 Jun 2011 16:55 UTC
Interesting. It's true that sometimes the ignore takes a couple of seconds to kick in (as it's processed by a background thread), but it's possible there could be something not quite right in there. I'll make a note to take a look at it.
Post a reply
Log in to reply.