Add your JaCoCo reports to Danger.
Install:
yarn add @ryunen344/danger-plugin-jacoco -D
At a glance:
// dangerfile.ts
import jacoco from '@ryunen344/danger-plugin-jacoco'
jacoco("path to xml file") // With optional Option
Configuration:
export interface Option {
/**
* If c0 or c1 is below value, will display mark.
*
* Default: 0
*/
projectCoverageRate: number;
/**
* Unit of the table to output
* Option has PACKAGE, FILE, CLASS, METHOD
*
* Default: FILE
*/
exportUnit: ExportUnit;
/**
* If set, will not export set packages.
*/
excludePackages: string[];
/**
* If set to false, only modified files results export.
* If set to true, all results export.
*
* Default: false
*/
exportAll: boolean;
}
## JaCoCo Report
### `Dagashi`'s Coverages are **27.67%** (c0) and **16.83%** (c1) ✨
| name | c0 cov(%) | c1 cov(%) | complexity(%) | line(%) | methods(%) | class(%) | status |
| --- | --- | --- | --- | --- | --- | --- | --- |
| `com/ryunen344/dagashi/ui/web/viewmodel/WebViewModel_Factory.java` | **N/A** | **N/A** | N/A | N/A | N/A | N/A | 🔥 |
| `com/ryunen344/dagashi/ui/web/viewmodel/WebViewModel_HiltModules.java` | **0.00** | **N/A** | 0.00 | 0.00 | 0.00 | 0.00 | ✨ |
| `com/ryunen344/dagashi/ui/web/viewmodel/WebViewModel.kt` | **0.00** | **N/A** | 0.00 | 0.00 | 0.00 | 0.00 | ✨ |
| `com/ryunen344/dagashi/ui/web/viewmodel/WebViewModelInput.kt` | **N/A** | **N/A** | N/A | N/A | N/A | N/A | 🔥 |
| `com/ryunen344/dagashi/ui/web/viewmodel/WebViewModelOutput.kt` | **N/A** | **N/A** | N/A | N/A | N/A | N/A | 🔥 |
See the GitHub release history