Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test retry on class level fails with suite engine and Gradle 5.0 #230

Closed
snoopcheri opened this issue Oct 30, 2023 · 0 comments · Fixed by #231
Closed

Test retry on class level fails with suite engine and Gradle 5.0 #230

snoopcheri opened this issue Oct 30, 2023 · 0 comments · Fixed by #231
Assignees
Milestone

Comments

@snoopcheri
Copy link
Member

When using the Test Retry Gradle plugin with Gradle 5.0 and using the JUnit Suite engine, retrying tests on class level fails.

TestSuite
  Test1
    testOk()
    testFlaky() // fails on 1st execution and passes on 2nd
  Test2
    testOk()
    testFlaky() // fails on 1st execution and passes on 2nd

The class Test1 is configured to be retried on class-level.

When running this with Gradle 5.0, the following error is shown:

The following test methods could not be retried, which is unexpected.

No test methods are listed though.

The reason for this problem is the fact that Gradle 5.0 does not report test events for the intermediate classes Test1 and Test2. Only events for TestSuite and the test methods are reported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants