[英]No test cases are showing in the NUnit test explorer
I have installed the NUnit VS extension into VS Community 2015. I have a VS solution containing a test project and within that I have a class 我已将NUnit VS扩展安装到VS Community 2015中。我有一个包含测试项目的VS解决方案,并且其中有一个类
[TestFixture]
public class Tests
{
[Test]
public void canAddOnePlusOne()
{
Assert.Fail("Can't add");
}
}
The solution (re)builds successfully. 解决方案(重新)构建成功。 Nothing appears in the Test Explorer.
什么都没有出现在“测试资源管理器”中。 There is no output from running all tests.
运行所有测试都没有输出。 How do I get my tests to appear in the Test Explorer?
如何使我的测试出现在“测试资源管理器”中?
Without version numbers Install-Package NUnit had installed test framework version 3. The extension (without version #s) supports up to 2.6.4 version. 没有版本号Install-Package NUnit已安装了测试框架版本3。扩展(无版本号)最多支持2.6.4版本。 Had to install the NUnit3 extension.
必须安装NUnit3扩展。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.