-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
fix(karma): fix included:false pattern being ignored #1664
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
I signed it! |
CLAs look good, thanks! |
Thanks a lot, could you change the commit message to something like this: Also it seems there is an issue with the tests now, please make sure they pass. |
@dignifiedquire I updated the commit message. Can you help me figure out what is the problem with travis? I don't get any errors when I run tests locally with |
the problem here is the karma.conf.js file for this test:
excludes 'test-main.js' which starts karma so karma never starts so it times out. Perhaps get rid of the 'excluded' check when figuring out all of the included files? Seems a file being included should take precedence over it being excluded? |
oh heh heh I was accidentally signed in as 'karmarunnerbot' when I made that previous comment - sorry it's me. |
When defining patterns all files are included by default and when you want to exclude some you have to specify |
ya seems like if a file is specifically included (without using a regex) but it's being also excluded by an exclude regex the include should win in that case - at least that's how it must have been working before for that test to pass - or something like that :) |
Sorry for not responding earlier. I agree withehat @zzo says, to keep the old behaviour includes should take precendence over excludes if the pattern is more specific. I'm happy to discuss chamges to that in the future but for now we need that behaviour nack so we don't break everyones code. |
@raspo any chance you could look into finishing this? |
@raspo ping |
@raspo ping? |
Solved in another PR |
Closes #1530