TFS 2015 Build:测试结果未发布 [英] TFS 2015 Build: Test results not being published
本文介绍了TFS 2015 Build:测试结果未发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当TFS 2015执行自动化测试步骤时,我遇到了一个很奇怪的错误。
结果是生成的,但似乎TFS无法找到它们。 / p>
最后,它只是说没有找到结果发布(这是奇怪的,因为它甚至输出结果的完整路径)
查看构建日志下面的详细信息:
2015-12-16T15:44:29.5816976Z执行powershell脚本:C:\TfsBuildAgents\VsoBuildAgent\tasks\VSTest\1.0.22\VSTest.ps1
2015-12-16T15:44:29.7066995Z ## [ debug]为所有测试程序集调用Invoke-VSTest
2015-12-16T15:44:30.4723241Z工作文件夹:C:\TfsData\Build \_work\1
2015-12-16T15:44:30.4723241Z执行C:\Program文件(x86)\Microsoft Visual Studio 14.0 \Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console。 exeC:\TfsData\Build\work\1\s\Rx.Api.V2.Tests\bin\Rx.Api.V2.Tests.dll/设置:C:\\ \\ TfsData \Build\_work\1\s\Staging.runsettings/ EnableCodeCoverage / inIsolation / logger:trx
2015-12-16T15:44:30.7379639Z Microsoft(R)测试执行命令行工具版本14.0.24720.0
2015-12-16T15:44:30.7379639Z版权所有(c)Microsoft Corporation。版权所有。
2015-12-16T15:44:30.9567007Z开始测试执行,请稍候...
2015-12-16T15:44:38.2067012Z已通过登录
2015-12-16T15:44:39.6129523Z已通过GetMyEndpoints
2015-12-16T15:44:39.6129523Z已通过GetEndpoint
2015-12-16T15 :44:42.3648007Z已通过模仿
2015-12-16T15:45:23.0904977Z已通过SingleHotel_BookTwoPaxesOnSingleRoom
2015-12-16T15:45:50.8053379Z已通过SingleHotel_BookOnePaxOnSingleRoom
2015-12-16T15:46:20.5444670Z已通过SingleHotel_BookFourPaxesOnTwoRooms
2015-12-16T15:46:53.4013344Z已通过SingleHotel_BookFourPaxesOnFourRooms
2015-12-16T15 :47:03.3137055Z已通过Location_BookOnePaxOnOneRoom
2015-12-16T15:47:03.5168256Z结果文件:C:\TfsData\Build\_work\1\s\TestResults\ LOCAL SERVICE_YODA 2015-12-16 15_44_38.trx
2015-12-16T15:47:03.5168256Z附件:
2015-12-16T15:47:03.5324554ZC: \\ 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总测试:9.通过:9.失败:0.跳过:0.
2015-12-16T15:47:03.5324554Z测试运行成功。
2015-12-16T15:47:03.5324554Z测试执行时间:2.4823分钟
2015-12-16T15:47:03.6887046Z ## [warning]没有找到结果发布。
解决方案
在runsettings文件中,注释ResultDirectory RunConfiguration部分。
I'm having a really weird error when TFS 2015 executes an automated test step.
The results are generated, but it seems TFS unable to find them.
In the end, it just says that no results were found to publish (which is weird, because it even outputs the result full path)
Check below the build logs for more info:
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.
解决方案
In your runsettings file, comment out the ResultsDirectory tag under the RunConfiguration section.
这篇关于TFS 2015 Build:测试结果未发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文