Dei*_*kis 5 testing automated-tests bitbucket .net-core bitbucket-pipelines
我终于设法通过以下命令在 bitbucket 管道中制作测试报告:
- dotnet test MyTests --logger "trx;LogFileName=test-reports/results.xml"
Run Code Online (Sandbox Code Playgroud)
构建拆解 说:
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.
Run Code Online (Sandbox Code Playgroud)
但是,我在 bitbucket 中看不到这些测试结果文件。我知道管道窗口中应该有一个新选项卡或类似的东西。有什么建议如何在漂亮的展示窗口中看到它们吗?
没有找到任何文档或文章。
小智 4
Bitbucket 管道仅接受 JUnit xml 格式。您需要添加JUnitTestLogger并将命令更改为dotnet test "--logger:junit;LogFilePath=./test-reports/results.xml"
| 归档时间: |
|
| 查看次数: |
2379 次 |
| 最近记录: |