Socket
Socket
Sign inDemoInstall

codecov

Package Overview
Dependencies
5
Maintainers
4
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    codecov

Uploading report to Codecov: https://codecov.io


Version published
Weekly downloads
354K
decreased by-0.09%
Maintainers
4
Install size
1.61 MB
Created
Weekly downloads
 

Changelog

Source

3.7.2

  • Fix issue with network and file finding

Readme

Source

Codecov NodeJS Uploader

NPM version Build Status Build Status codecov.io Dependency Status Dev Dependency Status

Codecov.io support for node.js.

Installation:

Add the latest version of codecov to your package.json:

npm install codecov --save-dev

or

yarn add codecov --dev

Usage:

This script ( bin/codecov ) detect your CI provider and all coverage reports and uploads them to Codecov.

Once your app is instrumented for coverage, and building, simply call ./node_modules/.bin/codecov.

This library currently supports the following CI companies: Travis CI, Travis, Appveyor, CircleCI, Cirrus CI, Codeship, Drone, Jenkins, Shippable, Semaphore, Wercker, Snap CI, Buildkite, AWS CodeBuild.

Upload repo tokens

Repo tokens are not required for public repos tested on Travis-Org, CircleCI or AppVeyor.

Repo tokens are necessary to distinguish your repository from others. You can find your repo token on your repository page at Codecov. Set this unique uuid to CODECOV_TOKEN in your environment variables.

export CODECOV_TOKEN=":uuid-repo-token"
# or
./node_modules/.bin/codecov --token=:token
# or
./node_modules/.bin/nyc report --reporter=text-lcov | ./node_modules/.bin/codecov --pipe
Istanbul

With Mocha:

istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec
./node_modules/.bin/codecov

With Jasmine:

istanbul cover jasmine-node --captureExceptions spec/
./node_modules/.bin/codecov

With Tape:

istanbul cover test.js
./node_modules/.bin/codecov

With NYC

nyc npm test
nyc report --reporter=text-lcov > coverage.lcov
./node_modules/.bin/codecov

Troubleshooting

If you're seeing an HTTP 400 error when uploading reports to S3, make sure you've updated to at least version 3.7.0.

Change Log

  • v2.0.0 No longer supports node v0.10 because of the execSync.
  • v2.0.1 Publish as latest instead of next.
  • v2.0.2 Display correct version number in console.
  • v2.1.0 Flags supported http://docs.codecov.io/docs/flags
  • v2.2.0 Support for Jenkins Blue Ocean. Clean reports after upload. Fix for Gitlab.
  • v2.3.0 Added support for Windows. Updated dependencies.
  • v3.0.0 No longer supports node v0.12 because of new version of request
  • v3.0.1 Security fixes
  • v3.0.2 Security fixes
  • v3.0.3 Support non-git/hg root dirs
  • v3.0.4 Security fixes
  • v3.1.0 Custom yaml file. Allow codecov token from yml file.
  • v3.2.0 Added azure pipelines
  • v3.3.0 Added pipe with --pipe, -l
  • v3.4.0 Added Heroku CI support
  • v3.5.0 Added TeamCity support
  • v3.6.0 Added AWS CodeBuild and Semaphore2
  • v3.6.1 Fix for Semaphore
  • v3.6.2 Command line args sanitized fix
  • v3.6.3 Fix for AWS Codebuild & package updates
  • v3.6.4 Fix Cirrus CI
  • v3.7.0 Remove the X-Amz-Acl: public-read header
  • v3.7.1 Move to execFileSync and security fixes
  • v3.7.2 Fix issue with network and file finding .

Keywords

FAQs

Last updated on 22 Jul 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc