Skip to content

Commit d149c4e

Browse files
authored
Merge pull request #745 from tronprotocol/addjacoco
Addjacoco
2 parents 0290450 + 1f6c659 commit d149c4e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ addons:
99
ssh_known_hosts:
1010
- 47.93.9.236:22008
1111
skip_build:
12-
- README.md
12+
- README.md
1313
- LICENSE
1414
deploy:
1515
provider: script

build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ apply plugin: 'com.google.protobuf'
66
apply plugin: 'application'
77
apply plugin: 'checkstyle'
88
apply plugin: 'com.github.johnrengelman.shadow'
9+
apply plugin: "jacoco"
10+
911

1012
sourceCompatibility = 1.8
1113
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
@@ -33,6 +35,11 @@ def versions = [
3335
checkstyle: '8.7',
3436
]
3537

38+
jacoco {
39+
toolVersion = "0.8.1"
40+
}
41+
42+
3643
configurations {
3744
checkstyleConfig
3845

@@ -215,6 +222,10 @@ test {
215222
testLogging {
216223
exceptionFormat = 'full'
217224
}
225+
jacoco {
226+
append = false
227+
destinationFile = file("$buildDir/jacoco/jacocoTest.exec")
228+
}
218229
}
219230

220231
task stest(type:Test){

0 commit comments

Comments
 (0)