karma-webpack-example

Karma + Webpack + Mocha + Chai + Istanbul

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

> [email protected] 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

Related Repositories

react-karma-webpack-testing

react-karma-webpack-testing

Example repository for testing React components using Karma and Webpack. Totally copies ideas from React-Router. ...

enzyme-example-karma-webpack

enzyme-example-karma-webpack

Example project with React + Enzyme + Karma + Webpack ...

karma-webpack-example

karma-webpack-example

Karma + Webpack + Mocha + Chai + Istanbul ...

react-karma-webpack-example

react-karma-webpack-example

Test driven development for React with Eslint, Karma and WebPack ...

react-karma-rewire-webpack

react-karma-rewire-webpack

Build/test example for React ...


Top Contributors

gabel