Dremora / broccoli-karma

wraps karma to run on broccoli rebuild

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CLI app that wraps Broccoli's watcher and Karma's runner, so that Karma will run on Broccoli builds.

Usage

Your Karma conf needs to be set up to serve files from a specified output directory (in the below example, output/), as well as autoWatch: false (to disable the built-in watcher) and singleRun: false (so that it will continue to run):

module.exports = function(config) {
  config.set({

    files: [
      'output/**/*.js',
      'output/test/main.js'
    ],

    autoWatch: false,
    singleRun: false

    // ...rest of your config!

  });

};

And then just run broccoli-karma with output/ as the specified directory:

broccoli-karma output/

About

wraps karma to run on broccoli rebuild


Languages

Language:JavaScript 100.0%