Reputation: 33
I have a test class that looks something like this:
[TestFixture("HomeAddress")]
[TestFixture("WorkAddress")]
[TestFixture("VacationAddress")]
public class AddressTests : BaseAddressTests
{
private string _address;
public AddressTests(string address)
{
_address = address;
}
// Tests here ...
}
These work all fine. When I click Run All in my Visual Studio 2012 all the tests are run. However, if I move the TestFixture
s to the base class (here the silly BaseAddressTests
) the tests all run inconclusive.
The only way I have found around this is to restart Visual Studio. Then they all work again. What is this all about?
Upvotes: 3
Views: 767
Reputation: 136613
I'm assuming you're using the NUnit test adapter to run NUnit tests from within vs 2012... Does it work correctly if you use the NUnit GUI? If yes, then it might be a bug - search the NUnit discuss/develop mailing list.
[Update] Resharper bundles in its own runner - as a result, the middle of the path (most used) features work but the 'off-road' features don't work perfectly with it.
Upvotes: 2