goodeggs-karma
v6.0.3
Published
Run karma tests configured for the goodeggs angular stack. Works for both applications and node modules. Automatically includes:
Downloads
4
Readme
Goodeggs Karma
Run karma tests configured for the goodeggs angular stack. Works for both applications and node modules. Automatically includes:
- browserify
- coffeeify
- jadeify
- ngAnnotatify
- chai-jquery
- sinon-jquery
Usage
npm install goodeggs-karma
gulp = require 'gulp'
opsKarma = require 'goodeggs-karma'
gulp.task 'test', (done) ->
opsKarma.run({ singleRun: false }, done)
By default, goodeggs-karma expects your test files to match these glob patterns:
app/**/*karma.coffee
local_modules/**/*karma.coffee
This can be overriden with the options parameter (e.g. if you are using this for a node module).
opsKarma.run({
files: [
path.join(require.resolve('angular'), '..', 'angular.js')
path.join(require.resolve('angular-mocks'))
'src/**/*.test.coffee'
]
}, done)
API
opsKarma.run(options, done)
- options - override any of the opsKarma default config options
- done - done callback
Module scaffold generated by generator-goodeggs-npm.