Created
October 1, 2014 13:08
-
-
Save bendrucker/0bdc4c6d0c5a2c6ec203 to your computer and use it in GitHub Desktop.
Karma config for test coverage with browserify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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