toddmotto / angularjs-styleguide

AngularJS styleguide for teams
https://ultimateangular.com
5.96k stars 700 forks source link

Documentation is missing how are spec files collected and ran using this structure #139

Open dougrchamberlain opened 8 years ago

dougrchamberlain commented 8 years ago

I've gotten an enterprise application up and running with this style guide. I'm finding the documentation lacking for testing these modules. It is not clear if there is a test runner per component/per app/per module etc.. Is this beyond the scope of this style guide? a testing strategy seems critical.

toddmotto commented 8 years ago

Testing is completely up to you, the Angular docs suggest Karma/Jasmine though. It's un-opinionated here due to the vast amount of tooling you can use so that call is based on your project setup (i.e. Grunt/Gulp/Webpack/etc). Testing can be done on specific modules alone, you can fetch them all via globbed strings such as /app/**/**.spec.js to just grab your test files for running against. Hope that helps!