Skip to content

Instantly share code, notes, and snippets.

@bendrucker
Created October 1, 2014 13:08
Show Gist options
  • Save bendrucker/0bdc4c6d0c5a2c6ec203 to your computer and use it in GitHub Desktop.
Save bendrucker/0bdc4c6d0c5a2c6ec203 to your computer and use it in GitHub Desktop.
Karma config for test coverage with browserify
{
"frameworks": ["browserify", "mocha", "chai-sinon", "env"],
"files": [
"components/angular/angular.js",
"components/angular-mocks/angular-mocks.js",
"node_modules/angular-ui-router/release/angular-ui-router.js",
"./components/firebase/firebase.js",
"./components/angularfire/angularfire.js",
"test/unit/**/*.js"
],
"preprocessors": {
"test/unit/**/*.js": ["browserify"]
},
"reporters": ["progress", "coverage"],
"browserify": {
"debug": true,
"transform": ["browserify-shim", "browserify-istanbul"]
},
"coverageReporter": {
"reporters": [
{"type": "html"},
{"type": "text-summary"}
]
},
"browsers": ["PhantomJS"],
"singleRun": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment