Sponsor webpack and get apparel from the official shop or get stickers here! All proceeds go to our open collective!

ag-grid is proud to partner with webpack



webpack-dev-server "mocha!./cover-my-client-tests.js" --options webpackOptions.js
// webpackOptions.js
module.exports = {
    // your webpack options
    output: "bundle.js",
    publicPrefix: "/",
    debug: true,
    includeFilenames: true,
    watch: true,

    // the coverjs loader binding
    postLoaders: [{
        test: "", // every file
        exclude: [
        loader: "coverjs-loader"
// cover-my-client-tests.js

after(function() {

See the-big-test for an example.

You don't have to combine it with the mocha loader, it's independent. So if you want to cover a normal app usage, you can do so. The reportHtml function just appends the output to the body.


MIT (http://www.opensource.org/licenses/mit-license.php)