Add support for automatic retry of failed parameterized tests
sbabcoc
released this
07 May 19:29
·
76 commits
to master
since this release
In this release, I enhanced the automatic retry feature to include failures of tests under parameterized runners. Previously, enabling automatic retry with parameterized tests would result in a variety of bad behavior.
NOTE: The numbering for this release skips over 15.1.0
, which was deleted because I rushed the process and failed to actually merge the related pull request (#102) prior to publishing it. 🤦♂️
In addition to this added retry support, I fixed a few bugs I encountered along the way. Here's a summary:
- Create a fresh "atomic test" statement for each post-failure retry attempt.
- Refactor implementation to eliminate duplicate code in
Theories
runner support. - Create a new annotation proxy to indicate retried
@Theory
methods. - Optimize handling of ignored tests to avoid checking for activation of the automatic retry feature.
- Enhance the method descriptions produced by JUnitParams, adding the test class and annotations.
- Genericize the return type of
LifecycleHooks.callProxy
, eliminating the need for clients to type-cast the results. - Expand JavaDoc and add code comments to illuminate behaviors and explain "magic".