karma-painless
v1.3.0
Published
Karma plugin for painless test library
Downloads
20
Maintainers
Readme
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