Tests: Add karma config and dependencies

This commit is contained in:
Braydon Fuller 2014-11-26 09:55:03 -05:00
parent 7b93c770d4
commit b456d9a11a
3 changed files with 15 additions and 0 deletions

View File

@ -85,6 +85,10 @@ gulp.task('browser-test', shell.task([
'find test/ -type f -name "*.js" | xargs browserify -o ./browser/tests.js'
]));
gulp.task('karma', shell.task([
'./node_modules/karma/bin/karma start karma.conf.js'
]));
gulp.task('minify', function() {
return gulp.src('dist/bitcore.js')
.pipe(closureCompiler({

9
karma.conf.js Normal file
View File

@ -0,0 +1,9 @@
// karma.conf.js
module.exports = function(config) {
config.set({
frameworks: ['mocha'],
files: [
'browser/tests.js'
]
});
};

View File

@ -92,6 +92,8 @@
"lodash": "^2.4.1",
"mocha": "~2.0.1",
"run-sequence": "^1.0.2"
"karma": "^0.12.28",
"karma-mocha": "^0.1.9",
},
"license": "MIT"
}