安装nUnit测试适配器后无法运行MSTest单元测试 [英] Can not run MSTest unit tests after installing nUnit test adapter

查看:182
本文介绍了安装nUnit测试适配器后无法运行MSTest单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直使用MSTest进行单元测试。 在一个新项目中,我决定使用nunit。 但是,当我回到我的旧项目并单击在visual studio中运行所有测试时,nUnit适配器将被执行,并且不会获取MSTest单元测试。
  


有没有办法在解决方案级别配置使用nunit或mstest适配器?


google搜索后我发现可以放入每个类的代码片段允许单元测试在任一适配器下运行但是我无法弄清楚如何定义在visual studio中运行的适配器。


谢谢提前



解决方案

嗨朋友,


欢迎来到MSDN论坛。


经过多次尝试,我们仍无法重现此问题。
 如果可能,请截取屏幕截图或图片这个问题或分享一个简单的样本,以便我们可以对这个问题做进一步的分析?


感谢您的理解。期待您的回复。


最好的问候,


Dylan


I have always used MSTest for unit tests.  In a new project I decided to use nunit.  However when I go back to my old projects and click run all tests within visual studio the nUnit adapter is executed and does not pick up the MSTest unit tests.   

Is there a way to configure at the solution level wether to use nunit or mstest adapters?

After googling I found code snippets that can be put into each class to allow a unit test to run under either adapter however I cannot figure out how to define the adapter that is run in visual studio.

Thanks in advance

解决方案

Hi friend,

Welcome to MSDN forum.

After many attempts, we still fail to reproduce the issue.  If possible, could you please take a screenshot or images for this issue or share a simple sample so that we can do further analysis on this issue?

Thank you for understanding. Look forward for your reply.

Best Regards,

Dylan


这篇关于安装nUnit测试适配器后无法运行MSTest单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆