gpt4 book ai didi

testing - 看不到 .Net Core bitbucket 管道测试结果

转载 作者:行者123 更新时间:2023-11-28 19:53:28 25 4
gpt4 key购买 nike

我终于通过这个命令在 bitbucket 管道中生成了我的测试报告:

- dotnet test MyTests --logger "trx;LogFileName=test-reports/results.xml"

构建拆解说:

Found matching test report file MyPath/test-reports/results.xml
Finished scanning for test reports. Found 1 test report files.
Merged test suites, total number tests is 0, with 0 failures and 0 errors.

但是,我在 bitbucket 中看不到这些测试结果文件。我知道管道窗口中应该有一个新选项卡或类似的东西。关于如何在漂亮的显示窗口中查看它们有什么建议吗?

未找到任何文档或文章。

最佳答案

Bitbucket 管道只接受 JUnit xml 格式。您需要添加 JUnitTestLogger并将命令更改为 dotnet test "--logger:junit;LogFilePath=./test-reports/results.xml"

关于testing - 看不到 .Net Core bitbucket 管道测试结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52540799/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com