No test result files were found using search pattern '…\**\TEST-*.xml

那年仲夏 提交于 2021-01-27 21:27:25

问题


I am running my test in TFS (Nunit plus Visual Studio with Adapter) and I have set the build definition as below

Build succeeds but no test result file was generated Does TFS writes this Xml file ? Log

2017-02-08T08:08:40.8151428Z Executing the powershell script: D:\A1\agent\tasks\PublishTestResults\1.0.20\PublishTestResults.ps1

2017-02-08T08:08:41.0963795Z ##[warning]No test result files were found using search pattern 'D:\A1_work\1\s**\TEST-*.xml'.


回答1:


If the Nunit plus Visual Studio with Adapter means you have two test steps: one for unit tests and the other one for vs tests.

Please also add two "Publish Test Results" step one for Nunit format.

Also run your test manually on the build server to see if test result file .trx generated on the machine.



来源:https://stackoverflow.com/questions/42110221/no-test-result-files-were-found-using-search-pattern-test-xml

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