Skip to content

Commit b309a7c

Browse files
author
Marius Posta
authored
gradle: bulk-cdk connector junit tests should respect withSlowTests (#52661)
1 parent 59cd621 commit b309a7c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

buildSrc/src/main/groovy/airbyte-bulk-connector.gradle

+9
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,15 @@ class AirbyteBulkConnectorPlugin implements Plugin<Project> {
241241
dependsOn project.tasks.matching { it.name ==~ /(compile|spotbugs)[a-zA-Z]*Java/ }
242242
}
243243

244+
boolean withSlowTests = System.getProperty('skipSlowTests', 'false') == 'false'
245+
project.tasks.matching {
246+
it.name == 'test' ||
247+
it.name == 'integrationTestNonDocker' ||
248+
it.name == 'integrationTestJava'
249+
}.configureEach {
250+
onlyIf { withSlowTests }
251+
}
252+
244253
project.configurations {
245254
testFixturesImplementation.extendsFrom implementation
246255
testFixturesRuntimeOnly.extendsFrom runtimeOnly

0 commit comments

Comments
 (0)