How to integrate NUnit tests into a TFS 2010 build

后端 未结 3 868
陌清茗
陌清茗 2021-02-05 06:13

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?

Ideally I\'d like to have the granul

3条回答
  •  不要未来只要你来
    2021-02-05 06:53

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

    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.

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

提交回复
热议问题