使用搜索模式'... \ ** \ TEST-*.xml未找到测试结果文件 [英] No test result files were found using search pattern '...\**\TEST-*.xml

查看:53
本文介绍了使用搜索模式'... \ ** \ TEST-*.xml未找到测试结果文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在TFS(Nunit加上带有Adapter的Visual Studio)中运行测试,并且已按如下所示设置了构建定义

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

构建成功,但未生成测试结果文件TFS会写这个Xml文件吗?日志

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

2017-02-08T08:08:40.8151428Z执行Powershell脚本:D:\ A1 \ agent \ tasks \ PublishTestResults \ 1.0.20 \ PublishTestResults.ps1

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]使用搜索模式'D:\ A1_work \ 1 \ s ** \ TEST-*.xml'未找到测试结果文件.

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

推荐答案

如果Nunit plus带适配器的Visual Studio意味着您有两个测试步骤:一个用于单元测试,另一个用于vs测试.

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.

还请为Nunit格式添加两个发布测试结果"步骤.

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

还可以在构建服务器上手动运行测试,以查看计算机上是否生成了测试结果文件 .trx .

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

这篇关于使用搜索模式'... \ ** \ TEST-*.xml未找到测试结果文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆