Collect cobertura coverages from specific directories and create a summary file
npm install @yartasdev/cobertura-collect!NPM Type Definitions
!NPM Version
!npm bundle size
!NPM License
Collect cobertura coverages from specific directories and create a summary file
It can be install globally and run
``sh`
npm install @yartasdev/collect-cobertura -g
`sh`
@yartasdev/cobertura-collect -p -o cobertura-output.xml -t /coverage/**/cobertura-coverage.xml
Or it can be used directly without install
`sh``
npx @yartasdev/cobertura-collect -p -o cobertura-output.xml -t /coverage/**/cobertura-coverage.xml
| 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 |