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

Notification

Icon
Error

Prevent NCrunch running specific test projects within solution
simon
#1 Posted : Friday, June 17, 2011 4:00:36 PM(UTC)
Rank: Member

Groups: Registered
Joined: 6/17/2011(UTC)
Posts: 10

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
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
Remco
#2 Posted : Friday, June 17, 2011 6:33:44 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 930 times
Was thanked: 1257 time(s) in 1170 post(s)
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
1 user thanked Remco for this useful post.
simon on 6/20/2011(UTC)
simon
#3 Posted : Monday, June 20, 2011 12:40:20 PM(UTC)
Rank: Member

Groups: Registered
Joined: 6/17/2011(UTC)
Posts: 10

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
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
#4 Posted : Monday, June 20, 2011 4:55:34 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 930 times
Was thanked: 1257 time(s) in 1170 post(s)
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.
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.030 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download