【问题标题】:How to add the output of failing NUnit tests to the TFS build report?如何将失败的 NUnit 测试的输出添加到 TFS 构建报告中?
【发布时间】:2015-12-05 22:43:06
【问题描述】:

我需要在 TFS 的最终构建报告中包含失败测试 (NUnit) 的输出。

我环顾四周,发现 solutions 用于 VSTest,但不幸的是 NUnit 没有。

【问题讨论】:

    标签: tfs nunit tfsbuild


    【解决方案1】:

    您可以编辑您使用的构建过程模板 xaml 并添加自定义任务。 https://tfsbuildextensions.codeplex.com/wikipage?title=How%20to%20integrate%20the%20nUnit%20build%20activity&referringTitle=Documentation

    或者(可以说更糟,但这是我所做的)是不修改模板 xaml,而是以自定义 msbuild 文件 (.proj) 为目标,我将在其中运行 nunit 任务。然后你让你的 build def 来构建这个 .proj 而不是一个 sln,它就是运行和输出你的 nunit 结果的这个。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-19
      • 1970-01-01
      • 1970-01-01
      • 2016-09-21
      • 2015-07-19
      相关资源
      最近更新 更多