Codecov TypeScript Example
Add to your .travis.yml file.
language: node_js
scripts:
- npm install codecov -g
after_success:
- codecovnyc report --reporter=json > coverage/coverage.json
Repository tokens are required for (a) all private repos, (b) public repos not using Travis-CI, CircleCI or AppVeyor. Find your repository token at Codecov and provide via codecov --token=:token or export CODECOV_TOKEN=":token"
- Q: Why no coverage reports showing up?
A:Make sure you have enabled source mapping.tsc -p . --sourcemap
Or in your tsconfig.json
{
"compilerOptions": {
"sourceMap": true,
}
}- Q: Is there a Node.js example?
A: Yes, codecov/example-node That didn't work? Sorry, looks like you need to use SitePen/remap-istanbul.
- More documentation at https://docs.codecov.io
- Configure codecov through the
codecov.ymlhttps://docs.codecov.io/docs/codecov-yaml
We are happy to help if you have any questions. Please contact email our Support at [email protected]