-
Notifications
You must be signed in to change notification settings - Fork 27.5k
chore: add build into test unit task #10188
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA) at https://cla.developers.google.com/. If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check the information on your CLA or see this help article on setting the email on your git commits. Once you've done that, please reply here to let us know. If you signed the CLA as a corporation, please let us know the company's name. |
@Vibhuti can you please sign CLA (see instructions above) |
@IgorMinar, i signed CLA. |
CLAs look good, thanks! |
Hm...I don't think we need a |
@gkalpak you are right. I also agree with the point that we don't need build before running test. |
Without actually testing it, the reason a build is needed is because of https://github.com/angular/angular.js/blob/master/angularFiles.js#L175:
So, Furthermore (but unrelated to this PR), karma-modules.conf.js#L10 unnecessarily requests |
@gkalpak, i tried to change the angularFiles.js (https://github.com/angular/angular.js/blob/master/angularFiles.js#L175) as per your suggestion, but it's still showing error ( http://pastie.org/9741467) while testing ($ grunt test:unit). |
Maybe a git hook to run |
@cironunes: That wouldn't be safe in case you modify angular core, because After all, I don't think we can circumevent this (having to execute |
I tweaked the position of the |
Awesome, thank you! |
While following setup document https://docs.angularjs.org/misc/contribute, and running
$ grunt test:unit, it was showing "Uncaught ReferenceError: angular is not defined - AngularJS not working" error.
So i added 'build' into test unit task and then it starts working.