- Clone this repo
- Install global node modules (grunt and testem):
sudo npm install -g gruntsudo npm install -g testem - Download all the node modules needed for development:
sh setup.sh - To run the app locally
(Note: this will also watch for changes to *.js, *.html, and
*.less files in src and automatically
re-build the project with the new changes):
grunt localhost - To start the test runner:
testem
ORgrunt test
Testem test runner and Browserify is used to test this seed project.
Before the tests are run, browserify bundles all the files listed in tests/entry.js (which should include the source file and the test files) and all the files listed in tests/dependencies.js (which should include dependencies needed to run the tests
- ex. angular-mocks) browserified.js. Testem then runs the tests specified in browserified.js. When you exit Testem, it will delete browserified.js.
- Include all the test files you want testem to test in tests/entry.js using Browserify's require method.
- Use the command
testemin the root of this directory to run the tests.