node-karma-wrapper
I'm just wrapping the the karma public API here.
Information
Package | node-karma-wrapper |
Description | Karma test runner helper |
Node Version | >= 0.8 |
Usage
var karma = ; // Preconfig you servervar aKarmaTestServer =
Api
karma(configs)
Defines a karma server with a specific configuration (see the official api). Return a « Karma Helper Object »
« Karma Helper Object » methods
kho.start([callback])
Equivalent of karma start.
kho.run(callback)
Equivalent of karma run.
kho.inBackground([callback])
On continuous integration you can start the karma server without blocking the main process and without logging anything.
kho.simpleRun([callback])
Equivalent of karma start with the singleRun option on.
Travis CI trick
Here is a way to run specific config on Travis :
var assign = ; // TRAVIS TRICKS{ var options = configFile: configFile ; var travisOptions = processenvTRAVIS && browsers: 'Firefox' 'PhantomJS' reporters: 'dots' ; return ;}