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

Fab*_*ito 5 testing msbuild build tfs-2015

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

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
Run Code Online (Sandbox Code Playgroud)

Mar*_*ich 5

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

在此处输入图片说明