简体   繁体   English

如何在NUnit 2.6.3中使用NUnit测试适配器

[英]How to use NUnit Test Adapter with NUnit 2.6.3

I'm having this issue where I'm using NUnit 2.6.3 in my project, but after installing NUnit Test Adapter 1.0.0.0 (most recent version I can find) in Visual Studio Professional 2012, my tests still didn't show up in Test Explorer. 我在项目中使用NUnit 2.6.3时遇到了这个问题,但是在Visual Studio Professional 2012中安装了NUnit Test Adapter 1.0.0.0(我可以找到的最新版本)后,我的测试仍然没有显示在测试资源管理器中。 I realized soon that the description of NUnit Test Adapter states that it is compatible with NUnit versions up to 2.6.2, but it turns out I'm using NUnit 2.6.3. 我很快意识到,NUnit测试适配器的描述指出它与2.6.2之前的NUnit版本兼容,但是事实证明我正在使用NUnit 2.6.3。 Using NuGet, I can't find an older version of NUnit, and using Visual Studio's Extensions and Updates manager, I can't find a version of NUnit Test Adapter that supports 2.6.3. 使用NuGet,我找不到较旧的NUnit版本,而使用Visual Studio的扩展和更新管理器,则找不到支持2.6.3的NUnit测试适配器版本。

It turns out I needed to instead add the package "NUnit TestAdapter including NUnit 2.6.2 framework" to my project. 事实证明,我需要将软件包“包含NUnit 2.6.2框架的NUnit TestAdapter”添加到我的项目中。 That fixed everything right up. 这样就可以修复所有问题。

我只是遇到了一个相反的问题:使用nunit dll 2.6.3时,我的测试出现在测试浏览器中,但因其他问题而失败,但是使用2.6.2 dll时,则什么也没有出现。.我不相信您的问题基于此经验的版本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM