-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
41 lines (35 loc) · 924 Bytes
/
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
apply plugin: "java"
apply plugin: "eclipse"
apply plugin: "idea"
sourceCompatibility = 1.11
targetCompatibility = 1.11
repositories {
mavenCentral()
}
dependencies {
// junit jupiter
testImplementation("org.junit.jupiter:junit-jupiter-api:5.3.1") {
exclude group: 'junit', module: 'junit'
}
testRuntime("org.junit.jupiter:junit-jupiter-engine:5.3.1"){
exclude group: 'junit', module: 'junit'
}
// junit platform
testImplementation("org.junit.platform:junit-platform-runner:1.6.0")
testImplementation("org.junit.platform:junit-platform-commons:1.6.0")
}
test {
useJUnitPlatform()
reports {
junitXml.enabled = false
html.enabled = true
}
testLogging {
events "passed", "skipped", "failed"
}
}
// Copy JUnit report to docs
task copyReport(type: Copy) {
from file("$buildDir/reports/tests")
into file("docs/tests")
}