🌜
🌞
codecov

codecov

v3.8.3

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

npm install codecov

README

Codecov NodeJS Uploader

codecov.io NPM version Build Status Build Status Dependency Status Dev Dependency Status FOSSA 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=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.

License

FOSSA Status

Release Notes

3.8.3
By Tom Hu • Published on July 19, 2021

Fixes

  • #329 fix: Test if response has two lines

Dependencies

  • #306 Bump eslint-config-prettier from 7.2.0 to 8.3.0
  • #305 Bump eslint from 7.21.0 to 7.25.0
  • #302 Bump mock-fs from 4.13.0 to 4.14.0
  • #308 Bump lodash from 4.17.19 to 4.17.21
  • #309 Bump ignore-walk from 3.0.3 to 3.0.4
  • #310 Bump hosted-git-info from 2.8.8 to 2.8.9
  • #325 Bump prettier from 2.2.1 to 2.3.2
  • #326 Bump actions/setup-node from 2.1.5 to 2.2.0
  • #328 Bump lint-staged from 10.5.4 to 11.0.1
  • #330 Bump eslint from 7.25.0 to 7.31.0
  • #331 Bump ws from 7.3.1 to 7.5.3
  • #332 Bump urlgrey from 0.4.4 to 1.0.0
  • #334 Bump husky from 6.0.0 to 7.0.1
  • #333 Bump teeny-request from 7.0.1 to 7.1.1
3.8.2
By Tom Hu • Published on May 3, 2021

3.8.2

Fixes

  • #304 Add coverage-final.json as a possible coverage file during file lookup
3.8.1
By Tom Hu • Published on November 3, 2020

v3.8.1

Fixes

  • #246 Revert "Bump teeny-request from 6.0.1 to 7.0.0"
3.8.0
By Tom Hu • Published on October 5, 2020

v3.8.0

Features

  • #160 Add Github Actions support

Fixes

  • #173 Fix broken gcov command
  • #195 Update Node testing versions
  • #200 Remove flaky tests
  • #204 Create CHANGELOG and remove flaky v4 test
  • #208 Add license scan report and status
  • #220 Remove errant bitly

Dependencies

  • #189 Bump lint-staged from 10.0.7 to 10.2.11
  • #190 [Security] Bump handlebars from 4.5.3 to 4.7.6
  • #191 Bump prettier from 1.19.1 to 2.0.5
  • #192 Bump mock-fs from 4.10.4 to 4.12.0
  • #196 Bump teeny-request from 6.0.1 to 7.0.0
  • #197 Bump eslint-config-prettier from 4.3.0 to 6.11.0
  • #198 Bump js-yaml from 3.13.1 to 3.14.0
  • #199 Bump husky from 4.2.1 to 4.2.5
  • #202 Bump eslint from 5.16.0 to 7.7.0
  • #203 Bump jest from 24.9.0 to 26.4.1
  • #205 Bump mock-fs from 4.12.0 to 4.13.0
  • #206 Bump jest from 26.4.1 to 26.4.2
  • #207 Bump prettier from 2.0.5 to 2.1.0
  • #209 Bump lint-staged from 10.2.11 to 10.2.13
  • #210 Bump prettier from 2.1.0 to 2.1.1
  • #212 Bump eslint from 7.7.0 to 7.8.1
  • #214 Bump lint-staged from 10.2.13 to 10.3.0
  • #215 Bump husky from 4.2.5 to 4.3.0
  • #216 Bump node-fetch from 2.6.0 to 2.6.1
  • #217 Bump eslint from 7.8.1 to 7.9.0
  • #218 Bump prettier from 2.1.1 to 2.1.2
  • #219 Bump lint-staged from 10.3.0 to 10.4.0
  • #222 Bump eslint-config-prettier from 6.11.0 to 6.12.0
  • #223 Bump eslint from 7.9.0 to 7.10.0
  • #224 Bump teeny-request from 7.0.0 to 7.0.1
3.6.4
By Ed Moore • Published on February 1, 2020

Fix for Cirrus CI

3.6.3
By Ed Moore • Published on January 31, 2020

AWS Codebuild fixes + package updates

3.6.2
By Ed Moore • Published on January 23, 2020

command line args sanitised

3.6.1
By Ed Moore • Published on September 20, 2019

Fix for Semaphore

3.6.0
By Ed Moore • Published on September 20, 2019

AWS CodeBuild Semaphore v2

3.3.0
By Ed Moore • Published on April 3, 2019

Added pipe --pipe, -l

General

License
MIT
Typescript Types
None found
Tree-shakeable
No

Popularity

GitHub Stargazers
293
Community Interest
479
Number of Forks
136

Maintenance

Commits
10/219/22015
Last Commit
Open Issues
14
Closed Issues
104
Open Pull Requests
12
Closed Pull Requests
156

Versions

Versions Released
10/219/2201
Latest Version Released
Jul 19, 2021
Current Tags
latest3.8.3
beta1.0.0
next4.0.0-0

Contributors

eddiemoore
eddiemoore
Commits: 50
thomasrockhu
thomasrockhu
Commits: 22
dotnetCarpenter
dotnetCarpenter
Commits: 19
stevepeak
stevepeak
Commits: 16
drazisil
drazisil
Commits: 7
ibrahim0814
ibrahim0814
Commits: 7
dtinth
dtinth
Commits: 4
iansu
iansu
Commits: 3
fabiendem
fabiendem
Commits: 3
thomasrockhu-codecov
thomasrockhu-codecov
Commits: 2
ralic
ralic
Commits: 1
mrbrentkelly
mrbrentkelly
Commits: 1
JustinBeckwith
JustinBeckwith
Commits: 1
rochdev
rochdev
Commits: 1
nfischer
nfischer
Commits: 1