Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to specify multiple file types in testFilePattern section. #35

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

swapnilfarande
Copy link

Our current project has a requirement to have spec files in both spec.js and spec.ts format. But current plugin doesn't have option to specify multiple file types and raising exceptions.

Now with this commit, testFilePattern can be specified as single pattern as testFilePattern:'.spec.js' or array of patterns testFilePattern: ['.spec.js', '.spec.ts'].

Current karma-sonarqube-unit-reporter plugin supports only one input
file type e.g. spec.js or spec.ts, after this change, user can pass
array of input file types.
@antoine-vaisset
Copy link

Hello,

that's a good improvement (i need the same). But i suggest use RegExp instead of array, because it's more powerfull (filter is not only on endsWith) and maybe more efficient.

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.

2 participants