Update test configuration in other build.gradle files
All checks were successful
build-and-test / test (push) Successful in 1m44s
build-and-test / generate-javadoc (push) Successful in 1m58s
build-and-test / build (push) Successful in 2m0s

This commit is contained in:
JeremyStar™ 2024-08-19 02:59:11 +02:00
parent 43e038d3ec
commit 54cde09be3
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
6 changed files with 36 additions and 0 deletions

View file

@ -92,6 +92,13 @@ javadoc {
test { test {
useJUnitPlatform() useJUnitPlatform()
// Pass test configuration to test VMs
Map<String, String> testConfiguration = new HashMap<>();
for (String property : project.properties.keySet())
if (property.startsWith("test."))
testConfiguration.put(property, project.properties.get(property).toString())
systemProperties(testConfiguration)
setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8) setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8)
setForkEvery(1) setForkEvery(1)
setFailFast(true) setFailFast(true)

View file

@ -131,6 +131,7 @@ javadoc {
test { test {
useJUnitPlatform() useJUnitPlatform()
// Pass test configuration to test VMs
Map<String, String> testConfiguration = new HashMap<>(); Map<String, String> testConfiguration = new HashMap<>();
for (String property : project.properties.keySet()) for (String property : project.properties.keySet())
if (property.startsWith("test.")) if (property.startsWith("test."))

View file

@ -90,6 +90,13 @@ javadoc {
test { test {
useJUnitPlatform() useJUnitPlatform()
// Pass test configuration to test VMs
Map<String, String> testConfiguration = new HashMap<>();
for (String property : project.properties.keySet())
if (property.startsWith("test."))
testConfiguration.put(property, project.properties.get(property).toString())
systemProperties(testConfiguration)
setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8) setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8)
setForkEvery(1) setForkEvery(1)
setFailFast(true) setFailFast(true)

View file

@ -125,6 +125,13 @@ javadoc {
test { test {
useJUnitPlatform() useJUnitPlatform()
// Pass test configuration to test VMs
Map<String, String> testConfiguration = new HashMap<>();
for (String property : project.properties.keySet())
if (property.startsWith("test."))
testConfiguration.put(property, project.properties.get(property).toString())
systemProperties(testConfiguration)
setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8) setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8)
setForkEvery(1) setForkEvery(1)
setFailFast(true) setFailFast(true)

View file

@ -129,6 +129,13 @@ javadoc {
test { test {
useJUnitPlatform() useJUnitPlatform()
// Pass test configuration to test VMs
Map<String, String> testConfiguration = new HashMap<>();
for (String property : project.properties.keySet())
if (property.startsWith("test."))
testConfiguration.put(property, project.properties.get(property).toString())
systemProperties(testConfiguration)
setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8) setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8)
setForkEvery(1) setForkEvery(1)
setFailFast(true) setFailFast(true)

View file

@ -126,6 +126,13 @@ javadoc {
test { test {
useJUnitPlatform() useJUnitPlatform()
// Pass test configuration to test VMs
Map<String, String> testConfiguration = new HashMap<>();
for (String property : project.properties.keySet())
if (property.startsWith("test."))
testConfiguration.put(property, project.properties.get(property).toString())
systemProperties(testConfiguration)
setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8) setMaxParallelForks(project.hasProperty("jobs") ? Integer.parseInt((String) project.property("jobs")) : 8)
setForkEvery(1) setForkEvery(1)
setFailFast(true) setFailFast(true)