Wednesday, March 25, 2015

AngularJs Style Guide

Simple but radical concept, have the tests right next to the code.  In server side code, I'm so used to separating tests into a separate project. On some projects I work on the tests need to be stripped out for the production build, even thought unit tests should be harmless, but not my call.  This can be done with the build scripts, if needed.

There are many other gems in this document, check it out.
https://github.com/johnpapa/angular-styleguide#organizing-tests

No comments:

Post a Comment