Hi folks! I’ve been working on a pitch to fix some suboptimal (and in some cases, surprising) behavior in Swift Testing. When setting up test repetition to repeat tests when they fail (or until they fail), Swift Testing re-runs the whole test plan instead of just the test cases that failed.
This pitch reworks test repetition to repeat only those test cases which fail, and provides an iteration counter in the JSON event schema.
I’d love some feedback on this pitch, especially if you’ve been surprised by this behavior or if you prefer this behavior.
I found it crazy that this just happened without any warning, and don’t think it’s mentioned in the documentation. Messed up our CI when transitioning to Swift Testing from XCTest. So +100
The proposal says “if only one test case of a large parameterized test suite fails” but it’s also the case with non parameterised tests right?