-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
42 lines (33 loc) · 907 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
42
apply plugin: 'application'
apply plugin: 'jacoco'
mainClassName = 'main.java.Main'
// In this section you declare where to find the dependencies of your project
repositories {
jcenter()
}
// In this section you declare the dependencies for your production and test code
dependencies {
//compile 'org.slf4j:slf4j-api:1.7.7'
// JUnit and Mockito
//testCompile "junit:junit:4.12"
compile "junit:junit:4.12"
//testCompile "org.mockito:mockito-core:1.+"
}
jacoco {
toolVersion = "0.8.0"
reportsDir = file("$buildDir/customJacocoReportDir")
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination file("${buildDir}/jacocoHtml")
}
}
test {
jacoco {
append = false
destinationFile = file("$buildDir/jacoco/jacocoTest.exec")
classDumpDir = file("$buildDir/jacoco/classpathdumps")
}
}