Skip to content

Commit f2b95b5

Browse files
committed
Avoid warning for duplicate junit-platform.properties file
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.
1 parent a8c1d97 commit f2b95b5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

junit-vintage-engine/junit-vintage-engine.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,10 @@ tasks {
8989
dependsOn(testWithoutJUnit4)
9090
}
9191
}
92+
93+
eclipse {
94+
classpath {
95+
// Avoid exposing test resources to dependent projects
96+
containsTestFixtures = false
97+
}
98+
}

0 commit comments

Comments
 (0)