/todomvc-testing

Automated Javascript unit testing including code coverage analysis using Testem/Karma, Jasmine/Mocha/QUnit, and Istanbul/Blanket

Primary LanguageJavaScript

todomvc-testing

Build Status Dependencies DevDependencies Code Climate

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

See it in action

Installation

  1. Clone this repo:
git clone https://github.com/amercier/todomvc-testing.git
cd todomvc-testing
  1. Install submodules
git submodule init
git submodule update
  1. Install NPM modules
npm install

Note: this will automatically install Bower components as 'bower install' is registered in NPM install hook.

  1. Run tests

Example using Testem, QUnit and Blanket (use npm run list for list all):

npm run testem-test-vanillajs-qunit