Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/malinskiy/danger-jacoco
danger plugin to check against jacoco xml reports
https://github.com/malinskiy/danger-jacoco
codecoverage continuous-integration coverage coverage-report coverage-testing danger danger-jacoco jacoco static-analysis testing testing-tools
Last synced: 7 days ago
JSON representation
danger plugin to check against jacoco xml reports
- Host: GitHub
- URL: https://github.com/malinskiy/danger-jacoco
- Owner: Malinskiy
- License: mit
- Created: 2016-11-30T09:32:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-08-14T15:47:52.000Z (about 1 year ago)
- Last Synced: 2024-05-01T21:16:43.457Z (6 months ago)
- Topics: codecoverage, continuous-integration, coverage, coverage-report, coverage-testing, danger, danger-jacoco, jacoco, static-analysis, testing, testing-tools
- Language: Ruby
- Homepage:
- Size: 76.2 KB
- Stars: 18
- Watchers: 2
- Forks: 25
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
README
# danger-jacoco
**danger-jacoco** is the [Danger](https://github.com/danger/danger) plugin of
to validate the code coverage of the files changed## Installation
```
sudo gem install danger-jacoco
```## Usage
Add
```ruby
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`
## Development
1. Clone this repo
2. Run `bundle install` to setup dependencies.
3. Run `bundle exec rake spec` to run the tests.
4. Use `bundle exec guard` to automatically have tests run as you make changes.
5. Make your changes.