relcov!Build Status12 !Test Coverage34 !Code Climate56 !Issue Count76 !Dependencies Status89 !DevDependencies Status1314
A simple CLI tool for transforming absolute lcov source file paths to relative paths. This is useful when using cloud CI tools such as Travis CI and quality reporting tools such as Code Climate. istanbul will generate lcov files with absolute paths (as will most coverage tools), however the aforementioned cloud tools require lcov files with relative source file paths.
InstallationThis module is best used in an npm script...
npm install relcov --save-dev
...but if you must you can install it globally.
npm install relcov -g
Changelogv1.0.2 (2016-09-28) - Initial release.
UsageThe classic usage example would be to fix an lcov when pushing it to code climate (preferably in an npm script) like so:
relcov < ./coverage/lcov.info | codeclimate-test-reporter
It will read the the lcov file from stdin and push the (relative) lcov file to stdout. It will make the paths relative to the current working directory.