您建议使用哪种测试框架。

发布于 2024-10-03 01:02:07 字数 1539 浏览 0 评论 0 原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

过潦 2024-10-10 01:02:07

我建议:

I would suggest:

  • NUnit for testing
  • Moq for mocking
  • Resharper for running tests within the Visual Studio
赴月观长安 2024-10-10 01:02:07

Visual Studio 2008 及更高版本(非 Express 版本)以及 Visual Studio 2005 Team Suite 包含单元测试功能。

http://msdn.microsoft.com/en-us/library/ms182409.aspx

Visual Studio 2008 and higher (non-Express editions), as well as Visual Studio 2005 Team Suite, include unit testing features.

http://msdn.microsoft.com/en-us/library/ms182409.aspx

岁吢 2024-10-10 01:02:07

我反对单元测试,因为它不能证明你没有错误。如果测试失败,则说明存在错误。如果测试成功,也许您有错误,也许没有。手动完成的集成测试很好,但编码的单元测试是浪费时间。单元测试来自极限编程,其目的是减慢开发人员的速度,而极限编程的推动者做得很好并获得了良好的声誉。

I am against unit testing because it is not proof you have no bugs. If tests fail, you have bugs. If tests succeed, maybe you have bugs maybe you don't. Integration tests done manually are good, but coded unit tests are waste of time. Unit tests are from extreme programming which was designed to slow developers down while the promoters of extreme programming do good job and get good reputation.

不必在意 2024-10-10 01:02:07

MbUnit 提供丰富的测试功能,具有高水平的自动化和与许多第三种内置集成派对工具(r#,posh,vs,msbuild,ccnet等)

“

它是Gallio 测试自动化平台,还支持

偏见:我是Gallio OSS 项目

MbUnit provides rich testing features with a high level of automation and built-in integration with many 3rd party tools (R#, PoSh, VS, MSBuild, CCNet, etc.)

alt text

It is part of the Gallio test automation platform, which also supports NUnit, MSTest, xUnit.net and some other less known frameworks. Gallio provides several test runners (GUI, command-like, PoSh-snapin, R# plugin, etc.) and common reporting formats (Html, Xml, etc.)

alt text

Bias: I'm an active contributor of the Gallio OSS project.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文