karma-painless

1.3.0 • Public • Published

karma-painless

A Karma plugin. Adapter for Painless test library.

Setup

Install Karma

First install karma and get it setup

Install karma-painless and browserify

npm install karma-painless browserify --save-dev

You can also use with webpack

Karma Setup

module.exports = function(config) {
  config.set({
        // ...
        
        frameworks: ['browserify', 'painless'],
        
        
        // list of files / patterns to load in the browser
        files: [
            'test/**/*.js'
        ],
        
        
        // preprocess matching files before serving them to the browser
        // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
        preprocessors: {
            'test/**/*.js': [ 'browserify' ]
        },
        
        // ...
        
    });
}

Run your tests

karma start

Package Sidebar

Install

npm i karma-painless

Weekly Downloads

2

Version

1.3.0

License

MIT

Last publish

Collaborators

  • taylorhakes