nunit 完成测试后通过电子邮件发送所有测试结果
我使用 NUnit 编写了单元测试。完成所有测试后,我想将测试结果通过电子邮件发送给我的所有团队。有办法做到吗?
I wrote unit tests using NUnit. Once all the tests are done, I want to email the Test results to all my team. Is there a way to do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通常这是使用像 Cruise Control 这样的自动化构建工具来完成的。它将检查您的代码脱离版本控制,构建应用程序,运行所有测试,打包应用程序,并将其发送到第一个部署服务器。团队成员可以使用浏览器检查构建服务器仪表板来查看构建和测试周期的完整结果。
我更喜欢通过电子邮件获得测试结果。电子邮件很快就会成为一种烦恼。
Usually this is done using an automated build tool like Cruise Control. It checks your code out of version control, builds the app, runs all the tests, packages the app, and sends it to the first deployment server. Team members can view the complete results of the build and test cycle using a browser to check the build server dashboard.
I'd prefer that to getting e-mailed test results. E-mail would soon become an annoyance.
由于您使用的是 TFS,因此您可以使用 NUnit for Team Build,这将使您的 NUnit 测试结果可见构建日志并合并到数据仓库中以进行报告。
还有 NUnitForVS 可以在 TFS 中发布结果。
采用上述方法之一将允许您利用当前的 CI 环境,并且是在结果出现时通过电子邮件发送结果的更好方法。
Since you are using TFS, you can make use of NUnit for Team Build which would make your NUnit test results visible in the build log and incorporated into the data warehouse for reporting.
There is also NUnitForVS which can publish results within TFS.
Going one of the above routes will allow you to leverage the current CI environment and is a much better approach to emailing the results as they surface.