When looking into testing strategies used by Angular apps, I've noticed that it's common to test controllers, services, filters, and directives with unit tests. However, testing templates / partials is only done in end to end tests using protractor.
I'm curious why we don't test the templates in unit tests similarly to how directives are tested, where we create a scope and compile template the template with it to ensure it rendered properly. This seems like a faster way and more direct way to do some basic verification like whether a class was applied to an element or not. Thanks, Chris -- 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/d/optout.
