Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在并行运行 phpunit 测试。我想将每个组的结果保存在单独的文件中,因为它会覆盖最后一个结果。例如,
我正在运行命令:
parallel phpunit --log-junit result.xml --group group1 group2 group3
在这种情况下,result.xml 仅显示group3测试结果。我需要result1.xmlfor group1,result2.xmlforgroup2等等。
group3
result1.xml
group1
result2.xml
group2
请问有人可以帮我吗?
这样的事情可能是:
stage('Unit test groups') { parallel { stage('Group 1 Tests') { steps { phpunit --log-junit group1_result.xml --group group1 } } stage('Group 2 Tests') { steps { phpunit --log-junit group2_result.xml --group group2 } } } }