MS Unit tests: problem running groups of tests
Hi-
I'm trying to get some Microsoft Unit Tests running on Resharper 4.5.1274.1 and the individual TestMethods run fine when I run them on their own, but when I try to execute all the tests in a TestClass (by left-clicking on the green/yellow circles and selecting "Run") the tests show up in the Resharper Test Runner window, and the tests show the egg-timer icon for a few seconds, but then they all go grey and don't execute. Any idea why this is happening?
Thanks,
-Mike
Please sign in to leave a comment.
Here's an example if it helps. When I click on the yellow&green dots by the class name and run the tests, they come up Grey. But I can run the tests individually.
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace MyTests.Billing
{
[TestClass]
public class BillTests
{
private TestContext testContextInstance;
public TestContext TestContext { get; set; }
[TestMethod]
public void TestMethod1()
{
Assert.Fail("Whatever 1");
}
[TestMethod]
public void TestMethod2()
{
Assert.Fail("Whatever 2");
}
}
}
Hello Mike
Could you please perform an experiment:
1. Open Debug > Exceptions and set the 'Thrown' option for Common Language Runtime exceptions
2. Start debugging your test class
Do you see any exception messages?
Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"Hi Andrey,
I gave that a try but when I turn on "Thrown" for all Common Language Runtime Exceptions I still get all grey dots.
Thanks,
-Mike
Just FYI, same here. No exceptions at all. The status bar is green (even if I have a test that fails) and the dots for each test stay grey.
Looks like this is now fixed on an internal build:
http://www.jetbrains.net/jira/browse/RSRP-123505