Refill task karma
Karma task in Refill format
Shields
Installation
npm install --save refill-task-karma refill gulp
Example
Refill taks karma is used in Refill for Angular
Usage
gulpfile.js
require('refill')({ js: { task: require('refill-task-karma') }}, require('gulp'), mode)
mode
Mode object. Determines task mode of operation.
{ // If true rerun all tests on any js file changes. Do not stop on errors. // skip coverage and junit // If false run only once and stop on any error // generate coverage and junit watch: true }
Default options
{ files: [ 'src/*Spec.js', 'src/**/*Spec.js' ], logLevel: 'warn', frameworks: ['jasmine', 'browserify'], browserNoActivityTimeout: 120000, preprocessors: { 'src/**': ['browserify'] }, browsers: ['Chrome'], reporters: ['progress'], plugins: [], reportsBaseDir: 'reports/test/', junitReporterOutputDir: 'junit/', htmlReporterOutputDir: 'html/', istanbulReporters: [{ type: 'html', subdir: 'coverageHtml' }, { type: 'clover', subdir: 'coverageClover' }, { type: 'text-summary' }], browserifyTransforms: [], babelPluginIstanbulOptions: { exclude: [ '**/node_modules/**', '*Spec.js', '**/*Spec.js' ] }}