#Running all tests
From the root directory of your project (or where gulpfile.js is located), run:
$ gulp dev-unit
#Front end unit tests
##Running front end tests
Front end tests may be run using:
$ gulp dev-karma
#Configuration In the /tests/ folder there is a karma.conf.js file, under the files section add the path to your front end javascript as well as the path to any javascript libraries you are using (like angular)
##Adding tests Tests should be put in the /tests/unit/frontend/ folder in files ending in .js
##Libraries used Front end tests are run using the karma test runner Tests are run using PhantomJS, a headless browser. The test framework used is mocha The assertion library used is chai) Stubs, spies and mocks are provided by sinon Test coverage is provided by istanbul, and the generated html files may be found in the /coverage/PhantomJS/ folder
#Back end unit tests
##Running front end tests
Back end tests may be run using:
$ gulp dev-backend
##Adding tests Back end unit tests should be put in the /tests/unit/server/ folder in files ending in .spec.js
##Libraries used Front end tests are run using the karma test runner The test framework used is mocha The assertion library used is chai) Stubs, spies and mocks are provided by rewire