1.0.3 • Published 11 months ago
@yartasdev/cobertura-collect v1.0.3
Collect Cobertura
Collect cobertura coverages from specific directories and create a summary file
Story
Inspired by cobertura-merge{:target="_blank"}, i aimed to replace the use of node-gyp and collect cobertura coverages from specific folders with FastGlob{:target="_blank"}.
Usage
It can be install globally and run
npm install @yartasdev/collect-cobertura -g
@yartasdev/cobertura-collect -p -o cobertura-output.xml -t /coverage/**/cobertura-coverage.xml
Or it can be used directly without install
npx @yartasdev/cobertura-collect -p -o cobertura-output.xml -t /coverage/**/cobertura-coverage.xml
Options
Option | Description |
---|---|
-o, --output FILE | Output file name with extension e.g. /coverage/cobertura.xml |
-t, --target DIRECTORY | Target files path /coverage/**/cobertura.xml |
-p, --print | Prints a summary of the code coverage to the standard output |