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

Notification

Icon
Error

More configuration
rbirkby
#1 Posted : Tuesday, May 10, 2011 11:06:49 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/10/2011(UTC)
Posts: 4
Location: London-ish

Hi,

I'd like to be able to stop processing tests from within the user interface. I can't find a way to do this.

Secondly, I'd like to exclude my Integration tests from NCrunch and just run my Unit tests. Currently, I do this via an NUnit [CategoryAttribute], so it would be great if NCrunch could provide a Category setting too.

Lastly, is it possible to exclude projects in the configuration? I have some projects in the solution with are rarely used.


Thanks,
Richard
SimonB
#2 Posted : Tuesday, May 10, 2011 11:15:55 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/10/2011(UTC)
Posts: 2
Location: London, UK

I've seen that you can change which tests are run, by going to main menu > nCrunch > Tests, and then you can right-click tests to ignore them in nCrunch.
Remco
#3 Posted : Tuesday, May 10, 2011 11:55:36 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 929 times
Was thanked: 1256 time(s) in 1169 post(s)
Hi Richard -

Thanks for the feedback!

Categorisation of tests via the NUnit Category attributes is on the list of future changes and shouldn't be far away.

As Simon mentioned, you can use the ignore features in the Test UI to selectively ignore integration tests that you find troublesome. Using this feature you can also ignore an entire project (and therefore all tests within it). If you are working as part of a team, you can also keep the ignored test configuration file under source control so your teammates can share it.

Of course, as a long term goal it's also worth trying to get integration tests running under NCrunch - This should always be possible, though depending on your tests, it may not be possible to do it overnight :)


Cheers,

Remco
rbirkby
#4 Posted : Tuesday, May 10, 2011 11:59:53 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/10/2011(UTC)
Posts: 4
Location: London-ish

Remco;7 wrote:


Of course, as a long term goal it's also worth trying to get integration tests running under NCrunch - This should always be possible, though depending on your tests, it may not be possible to do it overnight :)



The Integration tests which we run on our CI build server take about 10 minutes. Do you see NCrunch being the right tool for running these sorts of tests?


Thanks for your help,
Richard
Remco
#5 Posted : Tuesday, May 10, 2011 12:05:43 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 929 times
Was thanked: 1256 time(s) in 1169 post(s)
It can be - though there may be some setup required.

I'm currently using NCrunch on a project where we have numerous integration tests and a total running time of over an hour. The integration tests tend to trawl through in the background while the unit tests provide faster feedback.

The key is to ensure you use the parallel execution features, as otherwise the integration tests can block up the test pipeline.

NCrunch also sets an environment variable (%NCrunch%==1) in all of its worker processes, and you can use this as part of your build process (or test setup) to redirect your connections to a difference database/schema to run your tests against. This way you won't be interrupted by your integration tests using the same database as you may be manually using at the same time. I have plans to write an article on how to do this soon, as I feel its often a worthwhile step to take.
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.037 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download