Skip to content

Sigh plugin for karma. Tests are run in subprocesses, when a new test is scheduled any running tests are killed.

Notifications You must be signed in to change notification settings

sighjs/sigh-karma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sigh-karma

build status

Runs karma with the provided options each time the plugin receives a value. If the tests are already running then the process is killed and the tests are run in a new process. The plugin maintains a cache of at least two processes with the karma state set up ready to run a test to ensure minimal latency.

Example

npm install --save-dev karma then add this to your sigh.js:

var karma, glob, babel, write

module.exports = function(pipelines) {
  pipelines['build:source'] = [
    glob({ basePath: 'src' }, '**/*.js'),
    babel(),
    write('build/assets'),
    karma()
  ]
}

You can pass an object containing karma options as the first parameter to karma.

TODO

  • Write more tests

About

Sigh plugin for karma. Tests are run in subprocesses, when a new test is scheduled any running tests are killed.

Resources

Stars

Watchers

Forks

Packages

No packages published