Open ORESoftware opened 7 years ago
@ORESoftware I am finding that the option doesn't seem to work regardless where it is. I am trying to use it on an include and in the mocha section like `"coverage": "istanbul cover -i /src/*/.js -x /src/schemas/ --include-all-sources _mocha ./tests/*/.js"and what I am finding is it fails to enter any subdirectories in both
srcand
tests`. Have you noticed the same issue?
@guycnicholas indeed, this is nasty stuff.. no me gusta globs
I am trying to do this:
Here is the command I use:
istanbul instrument public --output public-coverage -x "public/lib/**/*"
Unfortunately, the public/lib directory still gets instrumented, which is a bummer because it contains a ton of files that are 3rd party libraries which I really do not want to instrument.
I have tried every glob combination under the sun and it's not working - the lib directory and its contents never get ignored, and they are always copied over to public-coverage and instrumented.
I consistently have problems with getting globs to behave as desired...it's not just this library. Not sure why that is, but maybe people should consider other ways of ignoring dirs, etc.