ESSS / pytest-replay

Saves runs to allow to re-execute previous pytest runs to reproduce crashes or flaky tests
MIT License
54 stars 4 forks source link

Report correct outcome in the replay file (#64) #65

Closed DavideCanton closed 2 months ago

DavideCanton commented 3 months ago

Fixes #64

Added both tests for sequential and parallel usages.

DavideCanton commented 2 months ago

Just one thing. When the "main" test pass but there is an error in a fixture teardown the recorded outcome will be "passed".

I kinda assumed the user is mainly interested in the actual test outcome, but probably your guess is better.

DavideCanton commented 2 months ago

@prusse-martin I've updated both code and tests to consider also the setup phase and to give priority to failed outcomes over the skipped ones. Waiting for you review!

prusse-martin commented 2 months ago

Thank you for fixing this.