-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (48 loc) · 1.86 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
53
54
55
56
57
apply plugin: 'application'
mainClassName = "org.vaccineimpact.api.blackboxTests.AppKt"
dependencies {
implementation project(":testHelpers")
testImplementation "junit:junit:4.12"
testImplementation "org.assertj:assertj-core:3.9.1"
testImplementation "com.sparkjava:spark-core:2.9.3"
testImplementation "org.slf4j:slf4j-simple:1.7.25"
testImplementation "com.github.jkcclemens:khttp:0.1.0"
testImplementation 'com.beust:klaxon:5.5'
testImplementation "com.opencsv:opencsv:4.1"
testImplementation "com.auth0:java-jwt:3.3.0"
testImplementation "com.github.fge:json-schema-validator:2.2.8"
testImplementation "org.jooq:jooq:3.10.5"
testImplementation "org.bouncycastle:bcprov-jdk15on:1.59"
testImplementation project(":testHelpers")
testImplementation project(":databaseInterface")
testImplementation project(":security")
testImplementation project(":serialization")
testImplementation project(":validateSchema")
testImplementation project(":emails")
testImplementation project(":models")
}
test {
dependsOn 'copySpec', 'createTemplateFromDatabase'
finalizedBy 'restoreDatabaseFromTemplate'
}
copyTestConfig.finalizedBy 'showTestConfig'
task createTemplateFromDatabase(type: JavaExec) {
main = "org.vaccineimpact.api.blackboxTests.AppKt"
classpath = sourceSets.main.runtimeClasspath
args "createTemplateFromDatabase"
}
task restoreDatabaseFromTemplate(type: JavaExec) {
main = "org.vaccineimpact.api.blackboxTests.AppKt"
classpath = sourceSets.main.runtimeClasspath
args "restoreDatabaseFromTemplate"
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
}
sourceSets project(':app').sourceSets.main
sourceSets project(':security').sourceSets.main
sourceSets project(':emails').sourceSets.main
sourceSets project(':models').sourceSets.main
}