Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
/codecov-nodePublic archive

Global coverage report uploader for Codecov in NodeJS

License

NotificationsYou must be signed in to change notification settings

codecov/codecov-node

Repository files navigation

🚨🚨 Deprecation Notice 🚨🚨

This uploader is being deprecated by the Codecov team. We recommend migrating to ournew uploader as soon as possible to prevent any lapses in coverage.The new uploader is open source, and we highly encourage submitting Issues and Pull Requests.

You can visit our blog post to learn more about ourdeprecation plan

On February 1, 2022 this uploader will be completely deprecated and will no longer be able to upload coverage to Codecov.

Codecov NodeJS Uploader

codecov.ioNPM versionBuild StatusBuild StatusDependency StatusDev Dependency StatusFOSSA Status

Codecov.io support for node.js.

Installation:

Add the latest version ofcodecov 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 arenot 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 toCODECOV_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

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 testnyc report --reporter=lcov./node_modules/.bin/codecov

Troubleshooting

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

License

FOSSA Status

About

Global coverage report uploader for Codecov in NodeJS

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors48


[8]ページ先頭

©2009-2025 Movatter.jp