mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-04 05:27:55 +01:00
- Add a new listTestCaseTime flag, that optionally prints test times next to test names. This flag defaults to false, for backward compatibility. - Update get-report.ts to use this flag when generating a report. - Update existing tests to set ReportOptions listTestCaseTime: true to verify above feature. - Update README with documentation about this new flag. Note this feature was needed for individual test times under pytest, since the xml is generated with all tests under one test suite. https://github.com/dorny/test-reporter/issues/260
1.2 KiB
1.2 KiB
| Report | Passed | Failed | Skipped | Time |
|---|---|---|---|---|
| fixtures/jest-junit.xml | 1 ✅ | 4 ❌ | 1 ⚪ | 1s |
❌ fixtures/jest-junit.xml
6 tests were completed in 1s with 1 passed, 4 failed and 1 skipped.
| Test suite | Passed | Failed | Skipped | Time |
|---|---|---|---|---|
| tests\main.test.js | 1 ✅ | 3 ❌ | 486ms | |
| tests\second.test.js | 1 ❌ | 1 ⚪ | 82ms |
❌ tests\main.test.js
Test 1
✅ Passing test (1ms)
Test 1 › Test 1.1
❌ Failing test (2ms)
Error: expect(received).toBeTruthy()
❌ Exception in target unit
Error: Some error
Test 2
❌ Exception in test
Error: Some error
❌ tests\second.test.js
❌ Timeout test (4ms)
: Timeout - Async callback was not invoked within the 1 ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 1 ms timeout specified by jest.setTimeout.Error:
⚪ Skipped test