An example of automated tests in JavaScript using Karma, Jasmine, Travis-CI and NPM scripts.
To run the automated tests please follow the commands below:
npm install
npm test
To run crossbrowser test (Chrome, Firefox and IE) execute the command:
npm run test-crossbrowser
To check the test code coverage check the folder build/test/coverage after ran the command below:
npm test
npm start
To practice Test Driven Development run the command:
npm run tdd
Any kind of feedback will be more than welcome, please open an issue for that.