NUnit与Visual Studio 2010的MSTest? [英] NUnit vs Visual Studio 2010's MSTest?

查看:77
本文介绍了NUnit与Visual Studio 2010的MSTest?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我意识到,对于直到2008年的Visual Studio版本,仍有很多较旧的问题要解决NUnit v MSTest 的普遍问题(例如

I realise that there are many older questions addressing the general question of NUnit v MSTest for versions of Visual Studio up to 2008 (such as this one).

Microsoft拥有将其第三版正确处理的历史.对于MSTest,那就是VS2010.

Microsoft have a history of getting things right in their 3rd version. For MSTest, that is VS2010.

他们使用 MSTest 这样做了吗?您是否会优先于NUnit在新项目中使用它?

Have they done so with MSTest? Would you use it in a new project in preference to NUnit?

我的具体担忧:

  • 速度
  • 在CruiseControl.NET中运行测试(命令行或MSBuild任务)
  • 来自CC.NET的代码覆盖率报告
  • 您可以在调试模式下运行MSTest测试吗

(我们使用ReSharper,因此测试运行程序对我们来说不是问题.最近几年我们一直使用NUnit.我们没有TFS.)

(We use ReSharper, so test-runners are not an issue for us. We have used NUnit for the last few years. We do not have TFS.)

推荐答案

  • 列表项的速度相同,但是MsTest可能会稍慢一些,因为它会每次创建用于测试运行的文件夹
  • MSBuid和CC.Net十分痛苦.您不能在没有VS的计算机上运行MSTest(2010年不确定100,但2008年确实如此)
  • 不确定,抱歉
  • 是的,可以从Visual Studio中获取
  • 我的建议如下:如果NUnit满足您的要求-使用它,就不用担心MSTest

    My recommendation is following: if NUnit satisfies you - use it, forget about MSTest

    这篇关于NUnit与Visual Studio 2010的MSTest?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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