karma-brunch
Adds karma support to brunch.
Usage
Install the plugin via npm with npm install --save karma-brunch
.
Or, do manual install:
- Add
"karma-brunch": "~x.y.z"
topackage.json
of your brunch app. - If you want to use git version of plugin, use the GitHub URI
"karma-brunch": "denar90/karma-brunch"
.
And run brunch with the test environment. For instance brunch watch --env=test
Config example with karma
moduleexports = files: javascripts: joinTo: 'vendor.js': /^/ 'app.js': /^app/ 'test.js': /^test/ stylesheets: joinTo: 'app.css' modules: autoRequire: 'test.js': 'test/specs' plugins: babel: presets: 'es2015' karma: singleRun: true browsers: 'PhantomJS' frameworks: 'mocha' 'chai' files: "public/test.js" ;
Supported karma frameworks
- karma-mocha
- karma-chai-plugins
- karma-jasmine
- karma-coverage
- karma-coveralls
- karma-phantomjs-launcher
License
The MIT License (MIT)