dotnet 测试并将测试发布到 TFS 2015

dotnet test and publish tests to TFS 2015

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

dotnet test -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\s\tests\Tests\TestResults17-06-01_16_56_11.trx

要使生成的 trx 文件可用作 VSTS/TFS 中的测试结果,请使用 "Publish Test Results" 任务: