1.0.0 • Published 4 years ago

codeclimate-hook v1.0.0

Weekly downloads
1,507
License
MIT
Repository
github
Last release
4 years ago

codeclimate-hook

MIT License

A hook, with send-coverage command, that send the corevage report to Code Climate.

Usage

Setup the coverage command:

"coverage": "CC_TEST_REPORTER_ID=YOUR_REPORTID yarn send-coverage",

Use in the hook helper(in this case husky):

"husky": {
    "hooks": {
      "pre-push": "yarn coverage"
    }
  },

Or call it manually:

yarn coverage

ENV VARIABLES

  • CC_TEST_REPORTER_ID required: You can find it under Repo Settings in your Code Climate project.
  • DEBUG default: false: useful for initial configuration.
  • COVERAGE_COMMAND default: yarn test : The command that runs the tests and generate the coverage report.
  • SILENT_MODE default: true: For not breaking any flow if anything goes wrong, so if you setup a pre-commit hook and you don't want your time to kill you when any tests breaks or they are with no internet to send the report.
1.0.0

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.3

4 years ago

0.2.4

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago