forked from StarOpenSource/Engine
Update test configuration in other build.gradle files
This commit is contained in:
parent
43e038d3ec
commit
54cde09be3
6 changed files with 36 additions and 0 deletions
|
@ -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)
|
||||||
|
|
|
@ -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."))
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue