zhuxindaba / karma-webpack-example

Karma + Webpack + Mocha + Chai + Istanbul

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

karma-webpack-example

Karma + Webpack + Mocha + Chai + Istanbul

##Installation

npm install

Run

npm run test

Remove --single-run to keep karma running. It will watch any changes on the test files and rerun instantly.

Output

> karma-webpack-example@1.0.0 test karma-webpack-example
> node ./node_modules/karma/bin/karma start --single-run --browsers PhantomJS

INFO [karma]: Karma v0.12.31 server started at http://localhost:9876/
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9.8 (your OS)]: Connected on socket g34oTr_PlQaujbE5WlIJ with id 16200709

  hexColorLuminance
    V should return a luminanced color
    V should change the background of an element

PhantomJS 1.9.8 (your OS): Executed 2 of 2 SUCCESS (0.005 secs / 0 secs)
TOTAL: 2 SUCCESS

Gulp

added usage in a gulp scenario

try it via "npm run test-gulp" or simply "gulp" in the projects directory if you have gulp installed globally

About

Karma + Webpack + Mocha + Chai + Istanbul

License:MIT License


Languages

Language:JavaScript 100.0%