TestFrameworkAutoDetectionIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Give JUnit 4 precedence over JUnit Platform and TestNG

For backwards compatibility, JUnit 4 takes precendence over TestNG and

JUnit Platform since groovy-all ships with dependencies on both. In the

latter case, JUnit Platform is used if both junit-vintage-engine and

JUnit 4 are on the classpath.

    • -27
    • +55
    ./TestFrameworkAutoDetectionIntegrationTest.groovy
  1. … 1 more file in changeset.
Autodetect TestFramework if none is configure explicitly

When the TestFramework of a Test task is not configured explicitly it

used to default to `useJUnit()`. Now, the task's classpath is inspected

for a junit-platform-engine.jar or testng.jar. If one of them is found,

the task uses the JUnit Platform or TestNG to execute tests,

respectively.

Since we have internal dependencies on the JUnit Platform and TestNG,

all Test tasks in our own build are configured to `useJUnit()` and

explicitly.

    • -0
    • +108
    ./TestFrameworkAutoDetectionIntegrationTest.groovy
  1. … 12 more files in changeset.