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

Duration output is 28 ms but in the actual test duratation is 28s 102ms

Aperta
#239 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
github-actions, typescript
Ambito
ci-cd, testing

Direzione di ricerca

Inizia riproducendo il report con il workflow dotnet test fornito e confronta la durata CTRF generata con l'output di VSTest che mostra 28s 102ms. Traccia il modo in cui il reporter GitHub Actions legge e visualizza tale durata; il lavoro è completato quando il report pubblicato conserva i secondi e i millisecondi corretti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Image

I think this is a bug?

Duration says 28 ms

but in the step test its Duration is: 28s 102 ms

Build started 10/30/2025 12:08:13.
     1>Project "/home/runner/work/shopphi/shopphi/tests/Shopphi.Order.IntegrationTests/Shopphi.Order.IntegrationTests.csproj" on node 1 (VSTest target(s)).
     1>InvokeTestingPlatform:
         Run tests: '/home/runner/work/shopphi/shopphi/tests/Shopphi.Order.IntegrationTests/bin/Release/net9.0/Shopphi.Order.IntegrationTests.dll' [net9.0|x64]
         Passed! - Failed: 0, Passed: 5, Skipped: 0, Total: 5, Duration: 28s 102ms
         Tests succeeded: '/home/runner/work/shopphi/shopphi/tests/Shopphi.Order.IntegrationTests/bin/Release/net9.0/Shopphi.Order.IntegrationTests.dll' [net9.0|x64]
     1>Done Building Project "/home/runner/work/shopphi/shopphi/tests/Shopphi.Order.IntegrationTests/Shopphi.Order.IntegrationTests.csproj" (VSTest target(s)).

These are 3 of the steps in the job:

      - name: Run integration tests (CTRF)
        run: dotnet test tests/Shopphi.Order.IntegrationTests/Shopphi.Order.IntegrationTests.csproj --no-build --configuration ${{ env.BUILD_CONFIGURATION }} --verbosity normal -- --report-ctrf --report-ctrf-filename TestResults.ctrf.json

      - name: Strip BOM from CTRF
        if: always()
        shell: bash
        run: |
          shopt -s globstar nullglob
          for f in tests/**/TestResults/**/*.ctrf.json; do
            sed -i '1s/^\xEF\xBB\xBF//' "$f" 2>/dev/null || true
          done

      - name: Publish CTRF report to GitHub
        if: always()
        uses: ctrf-io/github-test-reporter@024bc4b64d997ca9da86833c6b9548c55c620e40 # v1.0.26
        with:
          report-path: ${{ github.workspace }}/tests/**/TestResults/**/*.ctrf.json
          summary-report: true
Lingua principale
TypeScript
Stelle
376
Fork
42
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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.