TFS - Enabling “Rerun Failed Tests”

偶尔善良 提交于 2019-12-11 14:22:14

问题


I have a TFS Release definition that runs several tests as part of the deployment:

When I check the "Rerun Failed Tests" Option in my "Visual Studio Test" step in:

My unit tests no longer run as part of my release. The release fails with the following error in the "Visual Studio Test" step:

2019-02-22T16:21:33.0983821Z ##[error]Error opening response file 'C:\TFS' 2019-02-22T16:21:33.1413767Z ##[error]The test source file "C:\TFS Agent\ _work\r6\a\Agent_work_temp\ea14a091-36bd-11e9-99f5-51895cf3942e.txt" provided was not found.


回答1:


I figured since the error started with the following statement:

Error opening response file 'C:\TFS'

That there is some sort of bug with the TFS test runner where the call to the task to execute the tests is not putting the path in quotes. I changed all my TFS build agents to using the following "type" of paths for all builds(I removed all spaces from the folder the TFS agents lived in):

C:\TFSAgent\ _work

And it seems to work now...



来源:https://stackoverflow.com/questions/54836330/tfs-enabling-rerun-failed-tests

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!