testing - 看不到 .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 中看不到这些测试结果文件。我知道管道窗口中应该有一个新选项卡或类似的东西。有什么建议可以在漂亮的显示窗口中看到它们吗?
没有找到任何文档或文章。
解决方案
Bitbucket 管道仅接受 JUnit xml 格式。您需要添加JUnitTestLogger并将命令更改为dotnet test "--logger:junit;LogFilePath=./test-reports/results.xml"
推荐阅读
- java - Apache Camel,通过 xslt-saxon 合并 XML 文档的问题
- spring-mvc - MissingServletRequestParameterException:必需的产品参数“产品”不存在
- performance - 如何在 Android Studio 中提高屏幕分辨率?
- neo4j - 子图上的 CYPHER 递归计算
- oracle - UTL_SMTP 试图附加多个大于 32k 的文件
- excel - 比较两列,如果另一列等于指定文本,则返回其中一列的值
- json - 无法使用 jolt 转换器将 stringfy json 对象数组转换为 json 对象
- powershell - 用于查询 Active Directory 的 powershell 脚本
- stripe-payments - Shopify 店面与条带连接的集成
- reactjs - 无法通过链接和路由器反应 js 传递值