str0zzapreti / pytest-retry

A simple plugin for retrying flaky tests in CI environments
MIT License
29 stars 6 forks source link

added test coverage to prevent fixture retry regressions. #28

Closed str0zzapreti closed 9 months ago

str0zzapreti commented 9 months ago

Added a new test which validates that setup and teardown stages are properly executed with each retry. Pytest doesn't provide a public API for this so calling item._initrequest() is the only clear solution for now.