Shows examples of Javascript automated testing using TodoMVC as an example:
Platform | Runner | Coverage | Framework | ||
---|---|---|---|---|---|
Jasmine | Mocha + Chai | QUnit | |||
Browser | Karma | (none) | |||
Blanket | |||||
Istanbul | ✓ Vanilla JS | ✓ Vanilla JS | ✓ Vanilla JS | ||
Testem | (none) | ✓ Vanilla JS | ✓ Vanilla JS | ✓ Vanilla JS | |
Blanket | ✓ Vanilla JS | ✓ Vanilla JS | ✓ Vanilla JS | ||
Istanbul | PR#7 | ||||
node.js | PR#1 |
- Jasmine: demo, demo with Blanket, Istanbul coverage report
- Mocha: demo, demo with Blanket, Istanbul coverage report
- QUnit: demo, demo with Blanket, Istanbul coverage report
- Clone this repo:
git clone https://github.com/amercier/todomvc-testing.git
cd todomvc-testing
- Install submodules
git submodule init
git submodule update
- Install NPM modules
npm install
Note: this will automatically install Bower components as 'bower install' is registered in NPM install hook.
- Run tests
Example using Testem, QUnit and Blanket (use npm run list
for list all):
npm run testem-test-vanillajs-qunit