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

Notification

Icon
Error

AtomicAttribute and 'Run selected test in new task runner process'
wilhelmmedetz
#1 Posted : Thursday, September 7, 2017 8:10:11 AM(UTC)
Rank: Advanced Member

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

Was thanked: 2 time(s) in 2 post(s)
I have a class marked with the AtomicAttribute that contains several tests.

When I select a single test in the test window and execute the 'Run selected test in new task runner process' all test of this test class are executed.

Regards

Wilhelm
Remco
#2 Posted : Thursday, September 7, 2017 8:14:12 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi Wilhelm,

This is the design and intention of AtomicAttribute. See here for more information: http://www.ncrunch.net/documentation/reference_runtime-framework_atomic-attribute.

When a test fixture is 'atomic' its tests cannot be run separately. Running any test in the fixture will result in all tests within the fixture being run together. Thus this is useful for sequence dependent tests or tests that rely on expensive/slow fixture setup code.
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.023 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download