Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ This project enforces [its code conventions](fineract-provider/config/checkstyle
We recommend that you configure your favourite Java IDE to match those conventions. For Eclipse, you can
File > Import > General > Preferences our [config/fineractdev-eclipse-preferences.epf](config/fineractdev-eclipse-preferences.epf).

Code Coverage Reports
============

The project uses Jacoco to measure unit tests code coverage, to generate a report run the following command:

`./gradlew clean build jacocoTestReport`

Generated reports can be found in build/code-coverage directory.

Version
============
Expand Down
15 changes: 15 additions & 0 deletions fineract-provider/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ project.ext.jerseyVersion = '1.17'
buildscript {
ext {
openJPAVersion = '3.1.0'
jacocoVersion = '0.8.5'
}
repositories {
jcenter()
Expand Down Expand Up @@ -66,6 +67,7 @@ apply plugin: 'openjpa'
apply plugin: "com.github.spotbugs"
apply plugin: 'checkstyle'
apply plugin: 'com.github.andygoossens.gradle-modernizer-plugin'
apply plugin: 'jacoco'
// apply plugin: 'pmd'

dependencyManagement {
Expand Down Expand Up @@ -158,6 +160,19 @@ openjpa {
}
}

jacoco {
toolVersion = jacocoVersion
reportsDir = file("$buildDir/reports/jacoco")
}

jacocoTestReport{
reports{
html.enabled=true
xml.enabled=true
html.destination file("${buildDir}/code-coverage")
}
}

rat {
xmlOutput = false
htmlOutput = false
Expand Down