1
0
Fork 0
mirror of https://github.com/dorny/test-reporter.git synced 2026-02-04 05:27:55 +01:00

feat: Add listTestCaseTime flag to print test times next to test names

- 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
This commit is contained in:
Rick Shanor 2026-01-06 07:39:38 -08:00
parent a810f9bf83
commit fb2dd2ba55
5 changed files with 31 additions and 7 deletions

View file

@ -184,6 +184,10 @@ jobs:
# none
list-tests: 'all'
# Show execution time for individual test cases
# When enabled, test case execution times will be displayed in parentheses next to test names
list-test-case-time: 'false'
# Limits number of created annotations with error message and stack trace captured during test execution.
# Must be less or equal to 50.
max-annotations: '10'