Hi, I've been trying for a few hours now to exclude my test dirs from the coverage preprocessor, but I can't seem to find the right pattern. I was wondering if you could help me out.
I have multiple modules, which follow the same basic directory structure:

I'm looking for a pattern that will exclude everything in the test directory, but will instrument all the other files in the module (so the javascript-files in de models and views directories should be instrumented as well).
I've tried the following patterns:
src/**/!(test)/**/*.js
src/**/!(test)/*.js
!**/test/**/*.js
When I use that last pattern in a simple file that loads minimatch and test various paths it works as expected. However, when I put that pattern in the karma configuration, I get no files instrumented at all. I've also tried to first include all files, and then use the exclusion pattern to exclude the test files, but that didn't work either.
I hope someone here can help me out, because this is getting really annoying.
Thanks,
Ron Derksen