hbenl / vscode-mocha-test-adapter

Mocha Test Adapter for the VS Code Test Explorer
MIT License
91 stars 31 forks source link

Can multiple paths be provided for the "files" setting? #131

Closed v-kydela closed 4 years ago

v-kydela commented 4 years ago

I have a Node package with the following test script: nyc mocha \"libraries/@(adaptive*|bot*)/tests/**/*.test.js\"

I tried putting the line "mochaExplorer.files": "libraries/@(adaptive*|bot*)/tests/**/*.test.js", in my settings.json file in order to make Mocha Test Explorer run the same tests as my test script, but then it couldn't find any tests. It seems the @(adaptive*|bot*) syntax isn't supported. Is there any way to get that same effect, i.e. providing two different search patterns?

hbenl commented 4 years ago

Try setting "mochaExplorer.files": ["libraries/adaptive*/tests/**/*.test.js", "libraries/bot*/tests/**/*.test.js"] in your settings.