Class RetryExtension

java.lang.Object
rife.bld.extension.testing.RetryExtension
All Implemented Interfaces:
Extension, TestTemplateInvocationContextProvider

public class RetryExtension extends Object implements TestTemplateInvocationContextProvider
JUnit extension that provides retry functionality for failing tests.

This extension implements TestTemplateInvocationContextProvider to create multiple invocations of a test method when failures occur.

The extension works by:

  1. Detecting methods annotated with @RetryTest
  2. Creating multiple test invocation contexts
  3. Tracking failures and successes across invocations
  4. Stopping retries when a test passes or max retries are reached

Usage: Apply the @RetryTest annotation to test methods that should be retried on failure.

Since:
1.0
Author:
Erik C. Thauvin
See Also: