You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在GitLab中查看GitLab CI定时运行的JUnit测试报告?

Where to View JUnit Test Reports from Scheduled GitLab CI Pipelines

Great question! Even if you’re only running tests via scheduled pipelines (no MRs, pushes, or commits triggering them), GitLab still gives you a few handy places to access your JUnit test reports:

  • Pipeline Details Page: After your scheduled pipeline finishes, navigate to its specific page (found under CI/CD > Pipelines). Look for the "Tests" tab here—it’ll show a high-level summary of pass/fail counts, and you can click into individual test cases to view detailed logs or failure reasons.

  • Job Details Page: If your JUnit tests run in a dedicated job (like run-junit-tests), go to that job’s page (from the pipeline’s job list). There’s a "Tests" section here too, displaying results exclusive to that job—perfect for focusing on the output of a single test run.

  • Project-Wide Test Reports Dashboard: Head to your project’s CI/CD > Test Reports section. This page aggregates test results across all recent pipelines (including your scheduled ones), so you can track trends over time, see historical pass rates, and filter results by pipeline or test status.

The artifacts:reports:junit directive works no matter how the pipeline is triggered—GitLab collects the XML reports as long as the artifacts are saved (even if the job fails). All these UI locations will automatically pick up and display those reports for you.

内容的提问来源于stack exchange,提问作者Grumbunks

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.14 08:38:57