When you have multiple test suites for the same application you still want to have the code coverage across all testsuites.
This tool will handle this for you.
./node_modules/.bin/lcov-result-merger 'FILE_PATTERN' ['OUTPUT_FILE']
- Generate LCOV Code Coverage into different files, e.g.
build/coverage/coverage_X.log
- Run
./node_modules/.bin/lcov-result-merger 'build/coverage/coverage_*.log'
- Use the stdout to pipe it to e.g. Coveralls
- Done.
- Generate LCOV Code Coverage into different files, e.g.
build/coverage/coverage_X.log
- Run
./node_modules/.bin/lcov-result-merger 'build/coverage/coverage_*.log' 'target/coverage/coverage_merged.log'
- Done. Enjoy your merged file.