Clone
Bo Zhang <bo@gradle.com>
committed
on 18 Feb
Refine GRADLE_RERUNNER (#8522)
This is the followup of https://github.com/gradle/gradle/pull/8470 : there're two issues unresolved:

- `GRAD… Show more
Refine GRADLE_RERUNNER (#8522)

This is the followup of https://github.com/gradle/gradle/pull/8470 : there're two issues unresolved:

- `GRADLE_RERUNNER` is configured to `Gradleception`/`compileAll`/`sanityCheck`, etc. , which makes no sense.

- We want to skip `GRADLE_RERUNNER` if there're too many failures.

This PR does:

- Extract another function `applyTestDefaults` in addition to `applyDefaults`. Functional test build and smoke test build apply `applyTestDefaults`.

- Slightly refactor `applyDefaults` function.

- Add unit tests for `applyTestDefaults`/`applyDefaults`.

- Switch to JUnit 5 for `.teamcity` project.

- Ignore the rerun if test failures are > 10. Show less

master + 335 more