We have a very similar setup, except we started using require about 6 months 
ago. The test setup consists of a main.js file specifically for testing, which 
contains the require configuration. Each test is a require module (ie wrapped 
in a define), and we inject the dependencies. This includes angular and other 
libraries. We recently got it working for directives loading templates as 
needed, which was its own "wonderful" experience.

I'll try and get a few short "how-to" articles up now that I have a few days of 
breathing room.

// Jonas

> On Dec 21, 2013, at 20:46, 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 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.

Reply via email to