Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Bug: Integration with junit-to-ctrf does not use arguments

Đang mở
#207 5 bình luận 0 reaction 1 người được giao Xem trên GitHub

@Ma11hewThomas đang làm issue này rồi.

Từ ngày 23/8/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

I've been unable to get the JUnit to CTRF Integration to generate a report with a provided env appName and buildUrl. Regardless of input from the integration config json, those values are set by the github context via enrichCurrentReportWithRunDetails()

Github yaml:

- name: Publish Github Test Report
  if: success() || failure()
  uses: ctrf-io/github-test-reporter@v1
  with:
    report-path: 'test/${{ inputs.app }}/**/*_junit.xml'
    template-path: '.github/actions/run-tests/ctrf-template-job.hbs'
    custom-report: true
    summary: true
    write-ctrf-to-file: 'test-results/${{ steps.prepare_paths.outputs.name }}/ctrf-report.json'
    integrations-config: |
      {
        "junit-to-ctrf": {
          "enabled": true,
          "action": "convert",
          "options": {
            "output": "./test-results/${{ steps.prepare_paths.outputs.name }}/ctrf-report.json",
            "toolname": "junit-to-ctrf",
            "useSuiteName": false,
            "env": {
              "appName": "Unit: Shared",
              "buildUrl": "https://github.com/<REPO>/actions/runs/<RUN_ID/job/<JOB_ID>"
            }
          }
        }
      }

Resulting CTRF report:

{
  "reportFormat": "CTRF",
  "specVersion": "0.0.0",
  "generatedBy": "junit-to-ctrf",
  "timestamp": "2025-08-22T21:51:11.791Z",
  "results": {
    ....,
    "environment": {
        "buildName": "unit-tests",
        "buildNumber": "1",
        "buildUrl": "https://github.com/<REPO>/actions/runs/<RUN_ID>#summary",
        "buildId": "<BUILD_ID>",
        "branchName": "refs/pull/<PULL_ID>/merge"
    }
  }
}

The example in the JUnit to CTRF Integration documentation in this project includes setting appName, so I'd expect this to be possible.

It looks like this was planned but not implemented?

Ngôn ngữ chính
TypeScript
Star
380
Fork
43
Merge trung bình
3 ngày 11 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ctrf-io/github-test-reporter

Tất cả issue của ctrf-io/github-test-reporter

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.