Editorial question133.8K views1,868 votes0 answers3,757 following
AI-generatedRepeatedTest with @TestInstance(PER_CLASS) yields varying instance IDs
Determine whether JUnit 5’s @RepeatedTest annotation creates a new test instance for each repetition when the test class is annotated with @TestInstance(Lifecycle.PER_CLASS) . The current specification does not explicitly state if the same instance should be reused across repetitions, and the behavior is still under discussion in the project’s issue tracker.