看不到 .Net Core bitbucket 管道测试结果 [英] Can't see .Net Core bitbucket pipelines test results

查看:18
本文介绍了看不到 .Net Core bitbucket 管道测试结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我终于设法通过这个命令在 bitbucket 管道中制作我的测试报告:

I finally managed to make reports of my tests in bitbucket pipeline by this command:

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

Build Teardown 说:

Build Teardown says:

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中看不到这些测试结果文件.我知道管道窗口中应该有一个新选项卡或类似的东西.任何建议如何在漂亮的显示窗口中查看它们?

However, I can't see these test results file in bitbucket. I know that there should be a new tab in pipeline window or something like it. Any suggestions how to see them in a nice display window?

未找到任何文档或文章.

Didn't find any documentation or articles.

推荐答案

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

Bitbucket pipeline accepts only JUnit xml format. You need to add JUnitTestLogger and change command to dotnet test "--logger:junit;LogFilePath=./test-reports/results.xml"

这篇关于看不到 .Net Core bitbucket 管道测试结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆