Skip to content

Conversation

andreaswachs
Copy link
Contributor

@andreaswachs andreaswachs commented Dec 26, 2022

Proposed changes

These changes adds the --files flag to cobertura-merge. This allows the input of a glob file pattern. This is to allow for finding coverage files without having to exactly know where they are located, should you have many spread out coverage files.

Developed and running locally with NodeJS v19.3

Example usage

This example assumes that you have a bunch of coverage files spread out in nested directories named $PREFIX_coverage.xml.

$ npx cobertura-merge -o coverage.xml --files=**/*_coverage.xml

Fixes #16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can we have file pattern support in addition/instead of multiple file inputs
1 participant