Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

danger-code_coverage




Sonar Cloud




Version



Downloads




Build Status



Coverage




Reliability Rating



Security Rating



Maintainabiltiy




Code Smells



Bugs



Vulnerabilities



Technical Dept

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 option

code_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"
)