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

Notification

Icon
Error

Attribute for "Terminate Test Runner Tasks When All Test Execution Is Complete"
wilhelmmedetz
#1 Posted : Friday, February 14, 2014 10:34:39 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 7/4/2012(UTC)
Posts: 35

Was thanked: 2 time(s) in 2 post(s)
Hi,

I have some tests (integration tests incorporating WCF and AppDomains) that do not work when a test runner is reused for more than one test.

Thus it would be nice if I could specify for these tests "Terminate Test Runner Tasks When All Test Execution Is Complete".

It could be specified either as an attribute or as a project level configuration.

Currently this can only be specified for the complete NCrunch configuration.

Regards

Wilhelm

PS: NCrunch 2.4 works really nice.
Remco
#2 Posted : Friday, February 14, 2014 12:00:13 PM(UTC)
Rank: NCrunch Developer

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

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

Thanks for sharing this request! I'm wondering if you've had a look at the Isolated attribute? I think this may be what you're after.


Cheers,

Remco
wilhelmmedetz
#3 Posted : Friday, February 14, 2014 12:52:49 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 7/4/2012(UTC)
Posts: 35

Was thanked: 2 time(s) in 2 post(s)
Hi Remco,

Thanks for the quick answer.

I am already using the Isolated attribute - but it did not help.

Regards

Wilhelm
Remco
#4 Posted : Friday, February 14, 2014 11:39:47 PM(UTC)
Rank: NCrunch Developer

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

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

IsolatedAttribute is reliable in producing and tearing down specialised test processes for single execution runs. If your tests are still failing intermittently, I suspect there may be something else going on. Do the tests make use of any external resource? A database perhaps?
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.034 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download