cobertura-diff-coverage

1.0.12 • Public • Published

cobertura-diff-coverage

Requirements

  • Add cobertura as coverage reporter to jest configuration
  • Run git diff command prior to plugin execution:
git diff refs/remotes/origin/master...HEAD > diff.patch

Add the command to package.json

  "scripts": {
    "cdc": "cdc"
  },

Configure ci/cd:

  • Make sure your feature branch generate the cobertura.xml file using the coverage reporter "cobertura"
  • Run git diff command "git diff refs/remotes/origin/master...HEAD > diff.patch"
  • Run cdc command
  • Catch exit codes of cdc, 0 = coverage check passed, 1 = coverage check failed

Package Sidebar

Install

npm i cobertura-diff-coverage

Weekly Downloads

12

Version

1.0.12

License

MIT

Unpacked Size

15.2 kB

Total Files

7

Last publish

Collaborators

  • cris.f.o