我正在运行空手道框架测试,以在 Github 存储库中进行集成测试。
我的老板希望主要构建摘要能够显示类似这样的测试的快速摘要(但这不起作用)
- name: Karate Test Result Report
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
with:
name: Karate Test Results # Name of the check run which will be created
path: "/app/target/surefire-reports/*.xml" # Path to test results
reporter: java-junit # Format of test results
fail_on_error: true
- uses: mshick/add-pr-comment@v2
if: always()
with:
status: ${{ job.status }}
message-success: '✔️ Unit tests passed'
message-failure: '❌ Unit tests did not pass'
有没有办法将图形输出添加到主构建摘要页面,显示有多少空手道测试通过/失败?