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

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

Open
akinnee opened this issue Oct 14, 2014 · 3 comments
Labels

Comments

@akinnee
Copy link

akinnee commented Oct 14, 2014

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.

@gyandeeps
Copy link
Collaborator

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

@akinnee
Copy link
Author

akinnee commented Nov 20, 2014

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.

@gyandeeps
Copy link
Collaborator

Feel free to send a PR for this enhancement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants