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

awesome-webpack

awesome-webpack

A curated list of awesome Webpack resources, libraries and tools ...

awesome-webpack

awesome-webpack

A curated list of awesome Webpack resources, libraries and tools ...

react-webpack-example

react-webpack-example

Example project using React/Redux, built with Webpack and tested with Enzyme ...

simple-webpack-react-starter

simple-webpack-react-starter

Simple webpack starter with react and express backend server ...

karma-babel-preprocessor

karma-babel-preprocessor

Karma plugin for Babel ...


Top Contributors

gabel