Bug: Integration with junit-to-ctrf does not use arguments
@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?
- The only input passed to
convertJUnitToCTRFReport()is the path to the JUnit xml file. https://github.com/ctrf-io/github-test-reporter/blob/c390e03fbec5cebcbe28cc24a9c6f7f3a4265b51/src/ctrf/report-preparation.ts#L43 - The config for the JUnit To CTRF integration isn't handled. https://github.com/ctrf-io/github-test-reporter/blob/c390e03fbec5cebcbe28cc24a9c6f7f3a4265b51/src/integrations/handler.ts#L30
- 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
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.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ctrf-io/github-test-reporter
-
Timeline: draw earlier retry attempts on the thread that ran them (retryAttempts[].threadId)Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
ctrf-io/github-test-reporter#334 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
ctrf-io/github-test-reporter#309 · 1 bình luận ·
-
Excessive memory usage when processing history leads to Javascript Heap ExhaustionCó thể làm lại được @HenrikDK đã nhận 121 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
ctrf-io/github-test-reporter#302 · 2 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
ctrf-io/github-test-reporter#297 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
ctrf-io/github-test-reporter#282 ·
Tất cả issue của ctrf-io/github-test-reporter
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
components-web-app/docs#307 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
localstack/localstack-mcp-server#112 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:frontend kind:bug priority:p1 ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
PhyberApex/kuroshiro#1687 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Performance (Web Vitals) collector: LCP/FCP from background tabs are not discarded, inflating p75Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
umami-software/umami#4720 ·
Maintainer thường phản hồi trong vòng 3 ngày