I used to be able to hit Ctrl+U,R to run all test classes inside a given file using ReSharper (NUnit is mytest harness). For example, here is my class layout:
public static class TestsForT
{
[TestFixture]
public class WhenTDoesThis
{
[Test]
public void ThisHappens()
{
}
}
[TestFixture]
public class WhenTDoesThat
{
[Test]
public void ThatHappens()
{
}
}
}
All I would have to do was to place my cursor at the top of the file (over the static class declaration), then hit Ctrl+U,R and ReSharper would look at ALL the TestFixtures in my file and run all of them for me.
Now, unless my cursor is directly on the same line as the [TestFixture] attribute, ReSharper cannot run all unit tests in the file. If can only run one test at a time.
What magic ReSharper setting am I missing here? I don't want to run each unit test one at a time, b/c we can have up to 30 classes with the [TextFixture] attribute in one static test class.
Any ideas?
Kote answered by question. Basically locate the test file using Shift+Alt+L. You'll see it highlighted in Solution Explorer. then hit Ctrl+U,R and that will run all tests in the file.