如何将NUnit测试集成到TFS 2010版本中 [英] How to integrate NUnit tests into a TFS 2010 build

查看:75
本文介绍了如何将NUnit测试集成到TFS 2010版本中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将nunit测试集成到TFS 2010中的最佳方法是什么?是通过通用测试还是有更好的方法来运行它们?

What is the best way to integrate nunit tests into TFS 2010? Is it via generic tests or is there a better approach to running them?

理想情况下,我希望每个测试程序集具有一个通用测试的粒度,并有一种方法可以在TFS生成报告中显示结果.

Ideally I'd like to have the granularity of one generic test per test assembly and have a way to surface the results in the TFS build report.

推荐答案

您可以从

You can run nunit tests from command line and therefore you can automate these tests via your (Workflow) build template.

由于TFS 2010还没有很多自定义构建活动,因此您可以编写自己的活动以确保它与TFS Build Report更好地集成. 在这里,您可以找到有关编写自定义构建活动的一些信息.

Since there aren't a lot of custom build activities available for TFS 2010 yet, you could write your own to make sure that it integrates better with the TFS Build Report. Here you can find some information about writing a custom build activity.

另一种方法是通过Visual Studio创建单元测试.这些测试将在执行构建时自动运行.

Another approach would be to create unit tests via Visual Studio. These tests will be automatically run when performing a build.

这篇关于如何将NUnit测试集成到TFS 2010版本中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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