问题描述
最近开始进行测试驱动的开发,我使用的是作为reshaper的一部分提供的Nunit测试运行程序.就没有运行测试的捷径而言,它有一些缺点,我必须去寻找Nunit测试运行程序以使用鼠标来调用它.它具有出色的GUI,并且可以很好地将结果显示为IDE的一部分.
Having recently gotten into test driven development I am using the Nunit test runner shipped as part of resharper. It has some downsides in terms of there is no shortcut to run tests and I have to go looking for the Nunit test runner to invoke it using the mouse. It has a nice GUI and shows the results as part of the IDE well.
其他人对.net项目使用什么来运行单元测试?我在Google上搜索了其他应用程序,包括MBUnit和Nunit.org的单元测试应用程序,想知道什么对人们最重要.
What do other people use for running unit tests against .net projects?I have googled other apps including MBUnit and the Unit test App from Nunit.org and wondered what comes out on top for people.
推荐答案
Resharper确实有一些缺点...但是可以将其配置为执行您想要的操作...
Resharper does have some shortcomings...but it is possible to configure it to do what you want...
您可以在Visual Studio中配置键盘选项.另外,您可以使用Resharper中的单元测试资源管理器"找到所需的测试,并将其添加到当前会话中.我通常会配置一个快捷方式(Alt + U),该快捷方式可以在当前会话中运行所有测试...在开发过程中,我可以在几秒钟内运行所需的所有单元测试.
You can configure keyboard options in Visual Studio. Also, you can use the Unit Test Explorer in Resharper to find the tests you want and add them to the current session. I usually configure a shortcut (Alt+U) that runs all the tests in my current session...that way as I'm developing I can run all of the unit tests I need in seconds.
还可以检出:
但是,如果不必手动配置,那就太好了!(是的!我正在看你的Resharper Dev团队!大声笑)
However, it would be nice if this didn't have to be manually configured! (Yes! I'm looking at you Resharper Dev team! LOL)
这篇关于最好的Nunit测试运行器是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!