Skip to content

Commit

Permalink
creating report by using jacoco aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
hayarobi committed Oct 7, 2024
1 parent 9e07b41 commit 3a6d008
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/protobuf/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ protobuf {
}
}

// FIXME: custom disable options, it don't like it
test {
enabled = false
}

// FIXME: custom disable options, it don't like it
tasks.withType(Javadoc).all { enabled = false }

checkstyle {
Expand Down
24 changes: 24 additions & 0 deletions report/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
plugins {
id 'base'
id 'jacoco-report-aggregation'
}

repositories {
mavenCentral()
}

dependencies {
jacocoAggregation project(':client:smart-contract'),project(':client:wallet') // <.>
}

reporting {
reports {
testCodeCoverageReport(JacocoCoverageReport) { // <.>
testType = TestSuiteType.UNIT_TEST
}
}
}

tasks.named('check') {
dependsOn tasks.named('testCodeCoverageReport', JacocoReport) // <.>
}
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ include 'core:transport'
include 'client:wallet'
include 'client:smart-contract'
include 'assembly'
include 'report'

0 comments on commit 3a6d008

Please sign in to comment.