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

Notification

Icon
Error

Set Parallel Execution option at test project level
markrendle
#1 Posted : Monday, September 30, 2013 2:08:00 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/12/2012(UTC)
Posts: 4

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
Most of my tests would quite happily run in parallel, I've just got one test project where that won't work. It would be awesome if I could enable parallel execution across all the others and disable it for just that project.
Remco
#2 Posted : Monday, September 30, 2013 11:00:03 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)
Hi Mark -

The solution-level parallel execution option is basically just a shortcut for using attributes at fixture or project level.

If you have a project containing tests that can't be run in parallel with each other (i.e. an integration test project), the easiest option is to place an ExclusivelyUsesAttribute at root level in the project. For example, by adding [NCrunch.Framework.ExclusivelyUses("Database")] in your AssemblyInfo.cs file. In this way, the tests in this project will all be considered to be making use of the same resource, and they will not be run together.

If you need to stop these tests running with ANY other test in your solution, you can also use the Serial attribute.
1 user thanked Remco for this useful post.
markrendle on 9/30/2013(UTC)
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.029 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download