4.0.1 • Published 8 years ago

refill-task-karma v4.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

Refill task karma

Karma task in Refill format

Facebook

Shields

npm npm npm Travis bitHound Overall Score bitHound Dependencies bitHound Dev Dependencies bitHound Code GitHub forks GitHub stars GitHub watchers

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'
    ]
  }
}

Changelog

Changelog at github

Sponsors