Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
Add code coverage ignores (#153)
Browse files Browse the repository at this point in the history
Ignore crossdock and thrift files.
  • Loading branch information
vprithvi authored Apr 27, 2017
1 parent 9c74133 commit eb5947e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 12 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ allprojects {

group = 'com.uber.jaeger'
version = '0.19.0-SNAPSHOT'

repositories {
mavenCentral()
}
Expand Down Expand Up @@ -114,10 +114,20 @@ task codeCoverageReport(type: JacocoReport, group: 'Coverage reports') {
}

reports {
html.enabled = false
html.enabled = true
xml.enabled = true
xml.destination = "${buildDir}/reports/jacoco/report.xml"
}

afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it,
exclude: ['**/crossdock/**',
'**/thrift/**',
'**/thriftjava/**',
])
})
}
}

configure(subprojects.findAll {it.name != 'jaeger-thrift'}) {
Expand Down
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage:
precision: 2

0 comments on commit eb5947e

Please sign in to comment.