danger plugin to check against jacoco xml reports
MIT License
danger-jacoco is the Danger plugin of to validate the code coverage of the files changed
sudo gem install danger-jacoco
Add
jacoco.minimum_project_coverage_percentage = 50 # default 0
jacoco.minimum_package_coverage_map = { # optional (default is empty)
'com/package/' => 55,
'com/package/more/specific/' => 15
}
jacoco.minimum_class_coverage_map = { # optional (default is empty)
'com/package/more/specific/ClassName' => 15
}
jacoco.minimum_class_coverage_percentage = 75 # default 0
jacoco.files_extension = [".java"] # default [".kt", ".java"]
jacoco.report("path/to/jacoco.xml", "http://jacoco-html-reports/")
to your Dangerfile
bundle install
to setup dependencies.bundle exec rake spec
to run the tests.bundle exec guard
to automatically have tests run as you make changes.