Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@ryunen344/danger-plugin-jacoco

RyuNen344137MIT0.0.7TypeScript support: included

Dnager JS plugin for jacoco

danger, danger-plugin, jacoco

readme

danger-plugin-jacoco

Add your JaCoCo reports to Danger.

Usage

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;
}

Sample Table

## 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 | 🔥 |

Changelog

See the GitHub release history

License

MIT

changelog

Changelog

0.0.7 (2025-04-19)

Dependency Updates

  • bump @types/jest from 29.5.12 to 29.5.14 (#236) (4973c8b)
  • bump @types/node from 18.16.1 to 18.19.86 (#254) (461ec36)
  • bump @typescript-eslint/eslint-plugin from 8.29.1 to 8.30.1 (#248) (5fb9e2c)
  • bump @typescript-eslint/parser from 8.29.1 to 8.30.1 (#252) (31efb1d)
  • bump danger from 11.3.1 to 13.0.4 (#245) (762d91c)
  • bump eslint from 8.57.0 to 9.24.0 (#226) (a6c7921)
  • bump eslint from 9.24.0 to 9.25.0 (#250) (e4bf1fc)
  • bump eslint-config-prettier from 9.1.0 to 10.1.2 (#237) (da513f3)
  • bump prettier from 3.2.5 to 3.5.3 (#246) (da8a9da)
  • bump ts-jest from 29.3.0 to 29.3.2 (#243) (3689f3b)
  • bump tsc-alias from 1.8.8 to 1.8.15 (#249) (3aad5ee)
  • bump tslog from 4.9.2 to 4.9.3 (#244) (9ea25cf)
  • bump typedoc from 0.25.13 to 0.28.2 (#242) (1b5b82a)

Chores

0.0.6 (2025-04-11)

Dependency Updates

  • bump @babel/traverse from 7.17.3 to 7.23.2 (#128) (fe2eb4e)
  • bump @types/jest from 29.5.2 to 29.5.3 (0d9b072)
  • bump @types/node from 18.16.19 to 20.4.1 (#67) (3993950)
  • bump @types/node from 20.4.1 to 20.4.2 (2471091)
  • bump @typescript-eslint/parser from 5.61.0 to 6.0.0 (b051acf)
  • bump @typescript-eslint/parser from 6.0.0 to 6.2.1 (#89) (9614e48)
  • bump @typescript-eslint/parser from 6.2.1 to 8.28.0 (#220) (ec0d04f)
  • bump actions/checkout from 3.5.3 to 3.6.0 (#101) (e9c2f36)
  • bump actions/checkout from 3.6.0 to 4.1.0 (#118) (e099e72)
  • bump actions/checkout from 4.1.0 to 4.1.1 (#129) (8a03dbc)
  • bump actions/checkout from 4.1.1 to 4.1.6 (#216) (0d22403)
  • bump actions/checkout from 4.1.6 to 4.2.2 (#219) (0b61b0b)
  • bump braces from 3.0.2 to 3.0.3 (#218) (4f6bdc0)
  • bump danger from 11.2.6 to 11.2.8 (#97) (23d03d0)
  • bump danger from 11.2.8 to 11.3.1 (#148) (8dc15e8)
  • bump eslint from 8.44.0 to 8.45.0 (b9d198b)
  • bump eslint from 8.45.0 to 8.46.0 (#85) (086ed20)
  • bump eslint from 8.46.0 to 8.57.0 (#182) (d092522)
  • bump eslint-config-prettier from 8.8.0 to 9.1.0 (#178) (83fb56c)
  • bump fast-xml-parser from 4.2.5 to 4.2.6 (dd3a9e0)
  • bump fast-xml-parser from 4.2.6 to 4.3.2 (#125) (255c9b6)
  • bump fast-xml-parser from 4.3.2 to 5.2.0 (#228) (222dcf8)
  • bump google-github-actions/release-please-action (#122) (b115253)
  • bump google-github-actions/release-please-action (#154) (19b8465)
  • bump google-github-actions/release-please-action (#217) (323e728)
  • bump google-github-actions/release-please-action (#79) (522b401)
  • bump ip from 1.1.5 to 1.1.9 (#180) (b6f8ed6)
  • bump jest and @types/jest (#102) (d553f9b)
  • bump jest and @types/jest (#171) (24c7058)
  • bump jest from 29.6.1 to 29.6.2 (#84) (5748926)
  • bump prettier from 3.0.0 to 3.0.3 (#108) (e989433)
  • bump prettier from 3.0.3 to 3.2.5 (f56ce4d)
  • bump semver from 6.3.0 to 6.3.1 (#73) (ba261df)
  • bump tar from 6.1.11 to 6.2.1 (#202) (6246154)
  • bump ts-jest from 29.1.1 to 29.1.2 (#172) (a248bad)
  • bump ts-jest from 29.1.2 to 29.3.0 (#221) (8e07790)
  • bump ts-node from 10.9.1 to 10.9.2 (1140484)
  • bump tsc-alias from 1.8.7 to 1.8.8 (15af4e1)
  • bump tslog from 4.8.2 to 4.9.1 (#94) (6f041aa)
  • bump tslog from 4.9.1 to 4.9.2 (#104) (1a5ef3d)
  • bump typedoc from 0.24.8 to 0.25.8 (#174) (b27c800)
  • bump typedoc from 0.25.8 to 0.25.13 (#205) (e7370e4)
  • bump typescript from 5.1.6 to 5.8.3 (#227) (ee435f9)

Reverts

Chores

0.0.5 (2023-07-09)

Bug Fixes

  • deps: update dependency fast-xml-parser to v4.2.4 [security] (d11769e)
  • deps: update dependency fast-xml-parser to v4.2.5 [security] (09c7f56)
  • deps: update dependency tslog to v3.3.4 (0751dd5)
  • deps: update dependency tslog to v4 (c078cd4)