Add new task that runs all subproject's tests

This commit is contained in:
Marcus Da Coregio 2022-09-14 14:12:01 -03:00
parent db4ff2eb77
commit 13c2ee4dd7
1 changed files with 16 additions and 1 deletions

View File

@ -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
}
}