Create @Flaky
extension
#586
Labels
⚙️ component: Pioneer
Issues about Pioneer own things (e.g. utils)
🚦 status: in discussion
📖 theme: extensions
🏗️ type: new feature
In junit-team/junit5#1558 there was the following comment:
Technically, we can accommodate this request. Currently
@RetryingTest
stores run results in a test-levelExtensionContext::Store
. If we elevate this to the class-level, it's possible to store the result of a@Test
and re-run it using a test template. Alternatively, we check with anExecutionCondition
if the test template ran first and abort the@Test
if it were already successful.Is it ugly? Yes. For example, if the user specifies that the test should re-try 3 times, then the test template has to run at most 2 times because it runs once as a
@Test
. Ouch. Also, you have to do a bit of magic to ensure whether you are currently evaluating a test template or a@Test
result.Alternatively, we could introduce a@SelfDestruct
annotation that deletes a test if it fails. Java::Geci to the rescue?The text was updated successfully, but these errors were encountered: