首页 > 解决方案 > 看不到 .Net Core bitbucket 管道测试结果

问题描述

我终于设法通过以下命令在 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 中看不到这些测试结果文件。我知道管道窗口中应该有一个新选项卡或类似的东西。有什么建议可以在漂亮的显示窗口中看到它们吗?

没有找到任何文档或文章。

标签: testing.net-coreautomated-testsbitbucketbitbucket-pipelines

解决方案


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


推荐阅读