Skip to content

Incorrect computation of retries for failed tests #31

@shadowusr

Description

@shadowusr

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions