Allow excluding tests of all sub projects, not just hibernate-core
This commit is contained in:
parent
b6011ca9c8
commit
bfa17d3fc7
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue