forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
52 lines (46 loc) · 2.03 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
plugins {
id 'java'
}
// The java plugin automatically compiles/runs tests in the test source set (./src/test directory). Since we want acceptance tests to run
// only when explicitly requested, we put them in a separate source set, specify the sourceset's dependencies via configuration extensions below,
// and create a custom test task that can be invoked to run acceptance tests.
sourceSets {
acceptanceTests {
java {
srcDir("src/acceptanceTests/java")
}
resources {
srcDir("src/acceptanceTests/resources")
}
}
}
// Gradle links configurations with the name xImplementation or xRuntimeOnly etc.. to the source set named x. Therefore, any deps specified
// using the extensions below apply only to this sourceset and not any other code in the project.
configurations {
acceptanceTestsImplementation.extendsFrom testImplementation
acceptanceTestsRuntimeOnly.extendsFrom testRuntimeOnly
}
dependencies {
acceptanceTestsImplementation project(':airbyte-api')
acceptanceTestsImplementation project(':airbyte-commons')
acceptanceTestsImplementation project(':airbyte-config:persistence')
acceptanceTestsImplementation project(':airbyte-db')
acceptanceTestsImplementation project(':airbyte-test-utils')
acceptanceTestsImplementation 'org.apache.commons:commons-csv:1.4'
acceptanceTestsImplementation "org.testcontainers:postgresql:1.15.1"
acceptanceTestsImplementation "org.postgresql:postgresql:42.2.18"
acceptanceTestsImplementation "com.fasterxml.jackson.core:jackson-databind"
}
task acceptanceTests(type: Test) {
testClassesDirs += sourceSets.acceptanceTests.output.classesDirs
classpath += sourceSets.acceptanceTests.runtimeClasspath
useJUnitPlatform()
failFast = true
testLogging() {
events "passed", "failed"
exceptionFormat "full"
}
mustRunAfter test
dependsOn ':airbyte-integrations:connectors:source-postgres:airbyteDocker'
dependsOn ':airbyte-integrations:connectors:destination-csv:airbyteDocker'
}