Releases: str0zzapreti/pytest-retry
Releases · str0zzapreti/pytest-retry
v1.2.1
Hotfix release
Fixes:
- Prevented a possible durations index error if another exception occurred during the pytest_report_teststatus stage. (e.g. if using a custom teststatus hook in conjunction with this plugin).
- Switched back to overwriting the pytest report outcome (despite its Literal typing) because otherwise the counters don't play nice.
v1.2.0
New featues:
- Overhauled internal test reporting system to track outcome, attempts, and duration per test
- Instead of a boolean success key, there's now a str outcome key which can be 'passed', 'failed', or 'skipped'
- There is now a duration key (importable from the plugin) which can be used to retrieve test duration from item stashs
- Deprecated success_key
1.1.0
Fixed the following bugs:
- Unhandled exceptions during teardown cause runtest process to fail on a stash KeyError
New featues:
- Final reported test durations are now based on the latest test attempt by default.
- The old behavior, where all attempt durations were summed into the final duration, can still be enabled via the --cumulative-timings=1 flag or via the flaky marker timings arg
- Instead of attaching a full report to a test item as an attr (discouraged by Pytest documentation). The outcome of the test and the number of attempts are now safely saved to each item's stash. Both keys
success_key
andattempt_key
can be imported and used to access these values in other hooks or fixtures.
1.0.2
Changelog:
- Test durations are now overwritten by the most recent attempt by default. This is to provide more consistent data to time-based splitting algorithms, such as CircleCI's.
- new --cumulative-timings flag (defaults to False). Can be used to revert to the previous behavior where the duration of each attempt is summed together in the final report
- Latest report instance is no longer attached to the item as an attribute. The solution encouraged by the Pytest documentation is to use the item's Stash instance. Two new keys are used to store the number of attempts for each item and whether it passed or failed.
- Both stash keys can be imported from the plugin to access the outcome data for other purposes.
1.0.1
Changelog:
- The latest original report is now attached to the test item for easy access
Initial 1.0.0 release
Initial release of pytest-retry