-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
json-reporter incorrectly counts retries: if a test runs N times and fails every time, json-reporter reports that the test has N retries, when in reality it should be N-1.
However, if a test runs N times but passes on the last attempt, json-reporter correctly counts N-1 retries.
Note: This is a breaking change.
Why This Matters
To maintain consistency in retry counting between json-reporter and html-reporter.
Expected Behavior
- Test runs N times and fails all attempts: should report N-1 retries
- Test runs N times and passes on last attempt: should report N-1 retries (already works correctly)
Current Behavior
- Test runs N times and fails all attempts: reports N retries (incorrect)
- Test runs N times and passes on last attempt: reports N-1 retries (correct)
Internal issue: https://nda.ya.ru/t/CRpijrTF7JkvjV
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done