Bug: Integration with junit-to-ctrf does not use arguments
@Ma11hewThomas ci sta già lavorando.
Dal 23/8/2025.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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
- Lingua principale
- TypeScript
- Stelle
- 378
- Fork
- 43
- Merge medio
- 3g 11h
- PR unite (30g)
- 2
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ctrf-io/github-test-reporter
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
ctrf-io/github-test-reporter#309 · 1 commento ·
-
Excessive memory usage when processing history leads to Javascript Heap ExhaustionForse di nuovo libera @HenrikDK l’ha presa 115 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
ctrf-io/github-test-reporter#302 · 2 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
ctrf-io/github-test-reporter#297 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
ctrf-io/github-test-reporter#282 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
ctrf-io/github-test-reporter#278 · 1 commento ·
Tutte le issue di ctrf-io/github-test-reporter
Issue simili
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
openclaw/openclaw#182077 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
aikido high security
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
dequelabs/axe-linter-action#161 ·
-
[Feature Request] Update the DimCode agent icon to the 45:32 brand markForse già presa @eric8810 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
[Feature]: 建议导入源后,自动切换到新导入的源Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
lyswhut/lx-music-desktop#3026 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
abhigyanpatwari/GitNexus#3704 ·
I maintainer di solito rispondono entro 1 giorno