Skip to content

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

@karljucutan

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions