【问题标题】:dotnet test and publish tests to TFS 2015dotnet 测试并将测试发布到 TFS 2015
【发布时间】:2017-11-02 19:39:18
【问题描述】:

我已经使用以下命令执行了测试:

dotnet 测试 -l trx

但是当我看到我的测试结果没有出现在构建摘要中时:

一些提示显示使其可见?在 TFS2015 中,我不能使用当前的构建步骤来运行测试,因为它们不适用于 dotnet 核心应用程序

这是我的日志中的测试输出:

2017-06-01T14:56:08.3158317Z Microsoft (R) Test Execution Command Line Tool Version 15.0.0.0

2017-06-01T14:56:08.3158317Z Copyright (c) Microsoft Corporation.  All rights reserved.

2017-06-01T14:56:08.4228414Z Starting test execution, please wait...

2017-06-01T14:56:11.4560909Z Results File: D:\APPS\NVSDeploymentAgent\_work\12\s\tests\Tests\TestResults\2017-06-01_16_56_11.trx

【问题讨论】:

  • 您是否在构建定义中配置了“发布测试结果”任务?
  • Martin,我添加了它,实际上它适用于 trx 文件。将其添加为答案,我将其作为答案;)

标签: testing build msbuild tfs-2015


【解决方案1】:

要使生成的trx 文件可用作 VSTS/TFS 中的测试结果,请使用“发布测试结果”任务:

【讨论】:

    猜你喜欢
    • 2016-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-05
    • 2019-06-23
    • 2016-08-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多