Add new task that runs all subproject's tests
This commit is contained in:
parent
db4ff2eb77
commit
13c2ee4dd7
15
build.gradle
15
build.gradle
|
@ -21,3 +21,18 @@ allprojects {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register('runAllTests') {
|
||||||
|
var allTasks = rootProject.getAllTasks(true)
|
||||||
|
var allTestsTasks = allTasks.values().collect { t ->
|
||||||
|
t.findAll { it.name == 'test' || it.name == 'integrationTest' }
|
||||||
|
}.flatten()
|
||||||
|
it.dependsOn {
|
||||||
|
allTestsTasks
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue