grunt-template-jasmine-istanbul icon indicating copy to clipboard operation
grunt-template-jasmine-istanbul copied to clipboard

How do I ignore certain files when using grunt-template-jasmine-istanbul AND grunt-template-jasmine-requirejs?

Open akinnee opened this issue 9 years ago • 3 comments

How do I ignore certain files when using grunt-template-jasmine-istanbul AND grunt-template-jasmine-requirejs?

I don't want third party libraries to count against my line coverage. I can see how to do that when not using requirejs, but I'm not seeing any way to ignore files which are required.

akinnee avatar Oct 14 '14 20:10 akinnee

when you run your jasmine make sure you include all third party libraries under helper or vendor section and not under srcFiles section.

gyandeeps avatar Nov 18 '14 03:11 gyandeeps

Not easily doable. We're using requirejs and requiring the libraries in the files which actually need to use them. I wish there were just an option to pass a glob pattern of files to ignore, for example all files inside a directory called vendor.

akinnee avatar Nov 20 '14 21:11 akinnee

Feel free to send a PR for this enhancement.

gyandeeps avatar Aug 29 '15 03:08 gyandeeps