Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyaak/danger-code_coverage
Generate coverage report for modified files
https://github.com/kyaak/danger-code_coverage
analysis code-coverage coverage coverage-report danger danger-plugin jenkins plugin
Last synced: 2 months ago
JSON representation
Generate coverage report for modified files
- Host: GitHub
- URL: https://github.com/kyaak/danger-code_coverage
- Owner: Kyaak
- License: mit
- Created: 2019-06-16T19:50:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-07T09:39:44.000Z (about 5 years ago)
- Last Synced: 2024-04-24T09:23:35.230Z (8 months ago)
- Topics: analysis, code-coverage, coverage, coverage-report, danger, danger-plugin, jenkins, plugin
- Language: Ruby
- Homepage:
- Size: 66.4 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
danger-code_coverage
This [danger](https://github.com/danger/danger) plugin generates a coverage overview for modified files :100:
This plugin is inspired and works only with the jenkins [code-coverage-api-plugin](https://github.com/jenkinsci/code-coverage-api-plugin) :bowing_man:
## How it looks like
### Code Coverage :100:
|**File**|**Total**|**Method**|**Line**|**Conditional**|**Instruction**|
|:-|:-:|:-:|:-:|:-:|:-:|
|com/example/kyaak/myapplication/MyUtil.java|50.94|13.34|75.0|49.99|65.44|
|com/example/kyaak/myapplication/MyController.java|19.94|13.34|30.0|20.99|15.44|
|com/example/kyaak/myapplication/MainActivity.java|0.0|0.0|0.0|0.0|0.0|## Installation
$ gem install danger-code_coverage
## Usage
code_coverage.report
### Sort optioncode_coverage.report(sort: :ascending)
### Authentication
If you run a jenkins server with required authentication you can pass them to `danger-code_coverage`.
Create an API token with your CI user and do not pass normal password credentials.code_coverage.report(
auth_user: "jenkins",
auth_token: "MY_TOKEN"
)