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

Notification

Icon
Error

Run one test at a time
jgauffin
#1 Posted : Monday, March 4, 2013 1:58:00 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/6/2013(UTC)
Posts: 6
Location: Sweden

Thanks: 1 times
We have some classes which only contains integration tests.

It would be great if we could tag those classes with a custom attribute to tell ncrunch to only run one method at a time in the tagged class:

Code:

[TestClass]
[SomeSpecialAttributeToMakeNCrunchRunOneMethodAATime]
public class SomeIntegrationTests
{
    [TestMethod]
    public void SomeTest()
    {
          // I wont be run at the same time as sometest2 or any other method in this class
    }

    [TestMethod]
    public void SomeTest2()
    {
          //....
    }
}


The great thing with that is that all true unit tests will still run fast while all integration tests will still work.
jgauffin
#2 Posted : Monday, March 4, 2013 2:00:11 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/6/2013(UTC)
Posts: 6
Location: Sweden

Thanks: 1 times
Doh. You had already implemented this :)

[ExclusivelyUses]
Remco
#3 Posted : Monday, March 4, 2013 9:13:45 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
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 4.774 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download