Allow excluding tests of all sub projects, not just hibernate-core

This commit is contained in:
Christian Beikov 2022-09-19 14:51:06 +02:00
parent b6011ca9c8
commit bfa17d3fc7
2 changed files with 7 additions and 7 deletions

View File

@ -278,6 +278,13 @@ tasks.withType( Test.class ).each { test ->
if ( project.name != 'hibernate-testing' ) { if ( project.name != 'hibernate-testing' ) {
test.dependsOn ':hibernate-testing:test' test.dependsOn ':hibernate-testing:test'
} }
// Allow to exclude specific tests
if ( project.hasProperty( 'excludeTests' ) ) {
test.filter {
excludeTestsMatching project.property('excludeTests').toString()
}
}
} }
sourceSets { sourceSets {

View File

@ -203,13 +203,6 @@ tasks.withType( Test.class ).each { test ->
test.beforeTest { descriptor -> test.beforeTest { descriptor ->
//println "Starting test: " + descriptor //println "Starting test: " + descriptor
} }
// Allow to exclude specific tests
if (project.hasProperty('excludeTests')) {
test.filter {
excludeTestsMatching project.property('excludeTests').toString()
}
}
} }
// Tests with records // Tests with records