0.1.5 • Published 8 years ago

karma-steal-npm v0.1.5

Weekly downloads
1
License
-
Repository
github
Last release
8 years ago

karma-steal-npm

Plugin for Karma runnner and stealjs to be used with npm

Install

npm install --save-dev karma-steal-npm

Usage in Karma.conf.js file

All files and test files must be configured in the 'steal' property as shown in the below sample

sample file
module.exports = function(config) {
    config.set({
        basePath: '',
        autoWatch: false,

        singleRun: false,
        frameworks: ['jasmine','steal-npm'],

        steal:{
          files:['src/**/*.js',"test/**/*.js.map","src/**/*.js.map"],
          testFiles:['test/**/*.js']
        },

        reporters: ['kjhtml','coverage'],
        preprocessors: {
            // source files, that you wanna generate coverage for
            // do not include tests or libraries
            // (these files will be instrumented by Istanbul)
            'src/**/*.js': ['coverage']
        },

        "browsers":['Chrome'],
        coverageReporter: {
            dir : 'coverage/',
            reporters: [
                { type: 'html', subdir: 'html' },
                { type: 'lcovonly', subdir: 'lcov' },
                { type: 'cobertura', subdir: 'cobertura' }
            ]
        }
    });
};
0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago