Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#207 5 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@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?

Lingua principale
TypeScript
Stelle
378
Fork
43
Merge medio
3g 11h
PR unite (30g)
2

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ctrf-io/github-test-reporter

Tutte le issue di ctrf-io/github-test-reporter

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.