1
0
mirror of synced 2025-12-19 18:14:56 -05:00

gradle: bulk-cdk connector junit tests should respect withSlowTests (#52661)

This commit is contained in:
Marius Posta
2025-01-30 16:31:37 -05:00
committed by GitHub
parent 59cd62136e
commit b309a7c309

View File

@@ -241,6 +241,15 @@ class AirbyteBulkConnectorPlugin implements Plugin<Project> {
dependsOn project.tasks.matching { it.name ==~ /(compile|spotbugs)[a-zA-Z]*Java/ }
}
boolean withSlowTests = System.getProperty('skipSlowTests', 'false') == 'false'
project.tasks.matching {
it.name == 'test' ||
it.name == 'integrationTestNonDocker' ||
it.name == 'integrationTestJava'
}.configureEach {
onlyIf { withSlowTests }
}
project.configurations {
testFixturesImplementation.extendsFrom implementation
testFixturesRuntimeOnly.extendsFrom runtimeOnly