[英]running nunit tests from visual studio 2015
Ive just installed Nunit V3.7.1 and Im trying to actually run my tests. 我已经安装了Nunit V3.7.1,我正在尝试实际运行测试。 Previously Id used the GUi but this only seems to be avaibale as a 'beta' version. 以前,Id使用GUi,但这似乎只是一个“ beta”版本。 Ive installed the 0.4 preview version and pointed it to my c# test project (.net 4.5) and the run state is set as 'NotRunnable' - _SKIPREASON = File type is not supported. 我已经安装了0.4预览版本,并将其指向我的c#测试项目(.net 4.5),运行状态设置为“ NotRunnable”-_SKIPREASON =不支持文件类型。 How can I run my tests using nunit v3.7.1 ? 如何使用nunit v3.7.1运行测试? I dont want to run (& debug) all my tests everytime, only selected tets (this was easy with mstest). 我不想每次都运行(&调试)我所有的测试,只选择了tets(使用mstest很容易)。 Should I switch back to the previous version of Nunit ? 我应该切换回以前版本的Nunit吗?
The NUnit project offers a so-called Test Adapter. NUnit项目提供了一个所谓的测试适配器。 It's a Visual Studio plugin for full integration of the test suite (of the former GUI which you already know) into the IDE. 这是一个Visual Studio插件,用于将测试套件(您已经知道的以前的GUI)完全集成到IDE中。
You can find it on the website of NUnit -> Downloads http://nunit.org/download/ , NUnit Test Adapter xx -> https://github.com/nunit/nunit3-vs-adapter/releases/download/3.8/NUnit3TestAdapter-3.8.0.vsix . 您可以在NUnit网站上找到它->下载http://nunit.org/download/,NUnit测试适配器xx-> https://github.com/nunit/nunit3-vs-adapter/releases/download/3.8 /NUnit3TestAdapter-3.8.0.vsix 。
After installing it, you can run all/specific/failed NUnit tests directly out of Visual Studio (see top navigation with lable "Test"). 安装后,您可以直接在Visual Studio之外直接运行所有/特定/失败的NUnit测试(请参见带有标签“测试”的顶部导航)。
The plugin also works in the 2015 Community Edition. 该插件还可以在2015 Community Edition中使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.