TFS 2015 Build:测试结果未发布

时间:2015-12-16 16:05:50

标签: tfs msbuild continuous-integration mstest tfs2015

当TFS 2015执行自动测试步骤时,我遇到了一个非常奇怪的错误。

生成结果,但似乎TFS无法找到它们。

最后,它只是说没有发现结果发布(这很奇怪,因为它甚至输出结果完整路径)

检查构建日志下方以获取更多信息:

2015-12-16T15:44:29.5816976Z Executing the powershell script: C:\TfsBuildAgents\VsoBuildAgent\tasks\VSTest\1.0.22\VSTest.ps1

2015-12-16T15:44:29.7066995Z ##[debug]Calling Invoke-VSTest for all test assemblies

2015-12-16T15:44:30.4723241Z Working folder: C:\TfsData\Build\_work\1

2015-12-16T15:44:30.4723241Z Executing C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe "C:\TfsData\Build\_work\1\s\Rx.Api.V2.Tests\bin\Rx.Api.V2.Tests.dll"  /Settings:"C:\TfsData\Build\_work\1\s\Staging.runsettings" /EnableCodeCoverage /inIsolation /logger:trx

2015-12-16T15:44:30.7379639Z Microsoft (R) Test Execution Command Line Tool Version 14.0.24720.0

2015-12-16T15:44:30.7379639Z Copyright (c) Microsoft Corporation.  All rights reserved.

2015-12-16T15:44:30.9567007Z Starting test execution, please wait...

2015-12-16T15:44:38.2067012Z Passed   Login

2015-12-16T15:44:39.6129523Z Passed   GetMyEndpoints

2015-12-16T15:44:39.6129523Z Passed   GetEndpoint

2015-12-16T15:44:42.3648007Z Passed   Impersonate

2015-12-16T15:45:23.0904977Z Passed   SingleHotel_BookTwoPaxesOnSingleRoom

2015-12-16T15:45:50.8053379Z Passed   SingleHotel_BookOnePaxOnSingleRoom

2015-12-16T15:46:20.5444670Z Passed   SingleHotel_BookFourPaxesOnTwoRooms

2015-12-16T15:46:53.4013344Z Passed   SingleHotel_BookFourPaxesOnFourRooms

2015-12-16T15:47:03.3137055Z Passed   Location_BookOnePaxOnOneRoom

2015-12-16T15:47:03.5168256Z Results File: C:\TfsData\Build\_work\1\s\TestResults\LOCAL SERVICE_YODA 2015-12-16 15_44_38.trx

2015-12-16T15:47:03.5168256Z Attachments:

2015-12-16T15:47:03.5324554Z   C:\TfsData\Build\_work\1\s\TestResults\46904440-50c9-4522-b3c8-a84356b83b27\LOCAL SERVICE_YODA 2015-12-16 15_44_33.coverage

2015-12-16T15:47:03.5324554Z Total tests: 9. Passed: 9. Failed: 0. Skipped: 0.

2015-12-16T15:47:03.5324554Z Test Run Successful.

2015-12-16T15:47:03.5324554Z Test execution time: 2.4823 Minutes

2015-12-16T15:47:03.6887046Z ##[warning]No results found to publish.

1 个答案:

答案 0 :(得分:4)

在runsettings文件中,注释掉RunConfiguration部分下的ResultsDirectory标记。

相关问题