Feature Suggestions

Run one test at a time

Started by jgauffin on 6,703 views

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:


[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.
Doh. You had already implemented this :)

[ExclusivelyUses]

Post a reply

Log in to reply.