Skip to content

refilljs/refill-task-karma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Refill task karma

Karma task in Refill format

Made by Zaklinacze Kodu

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

Zaklinacze Kodu