New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

codeclimate-hook

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codeclimate-hook

Publish code coverage to Code Climate

1.0.0
latest
Source
npm
Version published
Weekly downloads
139
117.19%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

codeclimate

FAQs

Package last updated on 01 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts