Like I mentioned, we are running tests with Jasmine and Karma in our RequireJS based setup. It's definitely doable and not as hard as I figured. The biggest hurdle was setting up `ng-html2js` because we do not have a global `angular` object available.
I just started writing some of these small articles I mentioned before, and will post again once I put something on the blog. // Jonas On Sun, Dec 22, 2013 at 7:39 AM, Stu Salsbury <[email protected]>wrote: > Danny, if Karma is a must-have there might be reason for concern. Perhaps > it was my ignorance or impatience but I never figured out how to make it > work with requirejs. It was pretty straightforward in mocha after finding a > sample project on github. > On Dec 21, 2013 8:46 PM, "Danny Eck" <[email protected]> wrote: > >> @stu u totally identified my cause for concern here. Our test setup right >> now revolves around karma and jasmine *without* any Require stuff. There’s >> pressure mounting to start using Require for everything and since i'm not >> all that familiar with it, my first reaction is fear. >> >> A working example of an angular app with the following (ideal) >> characteristics would be HUGELY helpful: >> >> - multiple user-defined angular modules with inter dependence >> - require + karma + jasmine setup >> - a basic build routine (grunt) >> >> After seeing it all work together i could at least offer "yes it can be >> done. We'll start putting the pieces together" instead of "gee whiz... I >> dunno". Experimenting on my own here probably would not be a good use of >> time. >> >> I'll have to check out the potato project. Getting more familiar with >> Require also seems like a good idea. Maybe more teams like mine would be >> hip to require + angular if there were more articles/demos/resources >> teaching this kind of thing. Can anyone recommend? >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "AngularJS" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/angular/4-otp3gTz5s/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/angular. >> For more options, visit https://groups.google.com/groups/opt_out. >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/4-otp3gTz5s/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
