C sharp中的自动单元测试 [英] Automated unit testing in C sharp
本文介绍了C sharp中的自动单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过代码进行自动化单元测试,而无需编写测试方法。我想在页面上显示结果,显示有多少测试已经放弃并失败。如果可以使用任何工具或任何其他方式吗?
推荐答案
有很多。
http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#.NET_programming_languages [ ^ ]
请看这个列表:http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#.NET_programming_languages [ ^ ]。
最广泛使用工具是NUnit,当然是开源的:
http://en.wikip edia.org/wiki/NUnit [ ^ ],
http://www.nunit.org/ [ ^ ]。
-SA
Please see this list: http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#.NET_programming_languages[^].
Most widely used tool is NUnit, of course, open-source:
http://en.wikipedia.org/wiki/NUnit[^],
http://www.nunit.org/[^].
—SA
您还可以执行下一步:自动调用单元测试,将其与自动构建集成。它被称为持续集成,可以在 http://en.wikipedia.org/wiki/Continuous_integration <获取工具列表。 / a> [ ^ ]
You can take the next step also: automate the call to your Unit Tests, integrate that with automated builds. It''s called Continuous Integration, and a list of tools is available at http://en.wikipedia.org/wiki/Continuous_integration[^]
这篇关于C sharp中的自动单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文