我的竹编NUnit Runner任务正在创建以下结果文件: $ {bamboo.build.working.directory} \ bld-output \ $ {bamboo.ACM.AssemblyInformationalVersion} \ ACCCMApplication \ TestResult.xml
但是我的NUnit Parser竹节任务(这是下一个正在运行的任务)无法记录
build 06-Nov-2018 06:48:46 Tests run: 1, Errors: 0, Failures: 0, Inconclusive: 0, Time: 2.6861236 seconds
build 06-Nov-2018 06:48:46 Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0
build 06-Nov-2018 06:48:46
simple 06-Nov-2018 06:48:46 Parsing test results under D:\build-dir\ACM-NUNITINT-JOB1...
simple 06-Nov-2018 06:48:46 Failing task since test cases were expected but none were found.
我已经在NUnit分析器任务中为NUnit测试结果文件/目录尝试了以下选项,但没有成功。格式化此xml路径的正确方法是什么? :
${bamboo.build.working.directory}\bld-output\${bamboo.ACM.AssemblyInformationalVersion}\ACCCMApplication\TestResult.xml
**/bld-output/${bamboo.ACM.AssemblyInformationalVersion}/ACCCMApplication/TestResult.xml
**/test-reports/*.xml
${bamboo.build.working.directory}/bld-output/${bamboo.ACM.AssemblyInformationalVersion}/ACCCMApplication/TestResult.xml (with outside build checked)
答案 0 :(得分:0)
最后使它尽可能简单。 NUnit Runner配置结果文件名保留在根目录(即TestResult.xml)中 然后将NUnit Parser配置NUnit测试结果文件设置为** / TestResult.xml