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

Notification

Icon
Error

Change/Disable max execution time for tests
svish
#1 Posted : Tuesday, August 21, 2012 7:59:20 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/21/2012(UTC)
Posts: 1
Location: Oslo, Norway

How can I get NCrunch to not kill my tests after a certain amount of time? A few of my tests does take a bit of time, and I want them to finish.

Also, is there a way to mark NUnit tests as integration tests and have NCrunch not run those automatically?
Remco
#2 Posted : Tuesday, August 21, 2012 8:58:21 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,143

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
NCrunch will automatically apply a timeout of 60 seconds to each test (by default). You can change this by adjusting the configuration on your test project, 'Default Test Timeout'.

However, a better way to do this is to assign sensible timeout values to each of the tests individually. This can also help with tools other than NCrunch, as it can give some level of certainty that the integration tests won't hang and block up big test runs (i.e. on a build server).

I recommend having a look at creating your own custom engine mode for the integration tests. Assuming the integration tests have a particular category, you can create an engine mode that will automatically run all tests outside this category, then run the integration tests manually.
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.031 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download