简体   繁体   English

从Visual Studio 2015运行nunit测试

[英]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.

相关问题 我可以将 NUnit 3 测试添加到 Visual Studio 2015 负载测试吗? - Can I add NUnit 3 tests to Visual Studio 2015 load tests? 如何使用Visual Studio 2015运行UWP NUnit测试? - How to run UWP NUnit tests in with Visual Studio 2015? 在Visual Studio Test Runner中从外部测试套件程序集运行NUnit测试 - Running NUnit tests from external test suite assembly in Visual Studio Test Runner 在Visual Studio 2010中使用代码覆盖率运行NUnit测试 - Running NUnit tests in Visual Studio 2010 with code coverage 我的nunit测试未从Visual Studio 2013 Express运行 - My nunit tests are not being run from Visual Studio 2013 express 我可以在Visual Studio 2010中运行NUnit测试吗? - Can I run NUnit tests from within Visual Studio 2010? NUnit - 在 Visual Studio 中使用测试适配器运行测试时获取结果 xml - NUnit - Getting results.xml when running tests with Test Adapter in Visual Studio 通过NUnit GUI 0.60运行测试时如何使Visual Studio 2017达到断点? - How to make Visual Studio 2017 hit breakpoints when running tests through NUnit GUI 0.60? 当测试类从实现NHibernate的类继承时,Visual Studio 2017未发现NUnit测试 - Visual Studio 2017 not discovering NUnit tests when tests class inherits from a class that implements NHibernate 在Visual Studio中运行多个NUnit项目 - Running multiple NUnit Projects in Visual Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM