TFS 2015 Build: test results not published

I have a very strange error when TFS 2015 performs an automated test step.

Results are generated, but it seems TFS cannot find them.

In the end, he simply says that the results were not published (which is strange, because he even displays the full result)

See the build logs for more information:

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.
+4
source share
1 answer

In the runsettings file, comment out the ResultsDirectory tag in the RunConfiguration section.

+4
source

Source: https://habr.com/ru/post/1620383/


All Articles