Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#239 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
github-actions, typescript
Lĩnh vực
ci-cd, testing

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện báo cáo với workflow dotnet test được cung cấp và so sánh thời lượng CTRF được tạo ra với đầu ra của VSTest hiển thị 28s 102ms. Theo dõi cách reporter của GitHub Actions đọc và hiển thị thời lượng đó; hoàn tất khi báo cáo được công bố giữ nguyên số giây và mili giây chính xác.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Mở trong Codespaces

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.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ctrf-io/github-test-reporter

Tất cả issue của ctrf-io/github-test-reporter

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.