Switching Karma test browser to Chrome

Apparently traceurRuntime doesn't work in PhantomJS
This commit is contained in:
Jeff Avallone 2014-12-04 19:11:30 -05:00
parent 257fb19369
commit 042228d09f
3 changed files with 7 additions and 4 deletions

View File

@ -56,7 +56,6 @@ gulp.task('compass', function() {
gulp.task('browserify', function() {
var browserify = require('browserify'),
es6ify = require('es6ify'),
exorcist = require('exorcist'),
tap = require('gulp-tap'),
transform = require('vinyl-transform');

View File

@ -2,7 +2,11 @@ var _ = require('lodash'),
config = require('./config');
module.exports = function(karma) {
var globs = _.flatten([config.globs.js, config.globs.spec]);
var globs = _.flatten([
require('es6ify').runtime, // Hack to get traceurRuntime in the build
config.globs.js,
config.globs.spec
]);
karma.set({
frameworks: ['browserify', 'jasmine'],
@ -14,7 +18,7 @@ module.exports = function(karma) {
reporters: ['progress', 'notify'],
colors: true,
logLevel: karma.LOG_INFO,
browsers: ['PhantomJS'],
browsers: ['Chrome'],
autoWatch: true,
singleRun: false,
browserify: config.browserify

View File

@ -24,9 +24,9 @@
"gulp-wrap": "^0.5.0",
"karma": "^0.12.25",
"karma-browserify": "^1.0.0",
"karma-chrome-launcher": "^0.1.7",
"karma-jasmine": "^0.3.1",
"karma-notify-reporter": "^0.1.1",
"karma-phantomjs-launcher": "^0.1.4",
"lodash": "^2.4.1",
"q": "^1.1.2",
"snapsvg": "git://github.com/adobe-webplatform/Snap.svg#dev",