Skip to content

Commit

Permalink
Avoid warning for duplicate junit-platform.properties file
Browse files Browse the repository at this point in the history
When running tests in documentation from Eclipse, the
`junit-platform.properties` file from junit-vintage-engine made it to
the test runtime classpath. Setting `containsTestFixtures` to `false`
prevents that. It causes `without_test_code` to be set to `true` in
generated `.classpath` files.
  • Loading branch information
marcphilipp committed Dec 1, 2024
1 parent a8c1d97 commit f2b95b5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions junit-vintage-engine/junit-vintage-engine.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,10 @@ tasks {
dependsOn(testWithoutJUnit4)
}
}

eclipse {
classpath {
// Avoid exposing test resources to dependent projects
containsTestFixtures = false
}
}

0 comments on commit f2b95b5

Please sign in to comment.