chore(project): move to karma-bro for test preprocessing

This commit is contained in:
Nico Rehwaldt 2014-04-30 01:57:54 +02:00
parent 789c2bb18e
commit c17204356c
3 changed files with 7 additions and 12 deletions

View File

@ -55,7 +55,6 @@ module.exports = function(grunt) {
browsers: TEST_BROWSERS, browsers: TEST_BROWSERS,
browserify: { browserify: {
watch: false,
debug: false, debug: false,
transform: [ 'brfs' ] transform: [ 'brfs' ]
} }

View File

@ -32,7 +32,7 @@
} }
], ],
"devDependencies": { "devDependencies": {
"grunt": "^0.4.4", "grunt": "~0.4.4",
"grunt-contrib-watch": "~0.5.0", "grunt-contrib-watch": "~0.5.0",
"grunt-contrib-connect": "~0.6.0", "grunt-contrib-connect": "~0.6.0",
"grunt-contrib-jshint": "~0.7.2", "grunt-contrib-jshint": "~0.7.2",
@ -50,9 +50,9 @@
"karma-jasmine": "https://github.com/Nikku/karma-jasmine/archive/jasmine-v2.0.0-latest-1.tar.gz", "karma-jasmine": "https://github.com/Nikku/karma-jasmine/archive/jasmine-v2.0.0-latest-1.tar.gz",
"karma-chrome-launcher": "~0.1.2", "karma-chrome-launcher": "~0.1.2",
"karma-phantomjs-launcher": "0.1.2", "karma-phantomjs-launcher": "0.1.2",
"karma-ie-launcher": "^0.1.4", "karma-ie-launcher": "~0.1.4",
"karma-firefox-launcher": "^0.1.3", "karma-firefox-launcher": "~0.1.3",
"karma-browserify": "~0.2.0", "karma-bro": "~0.1.0",
"jsondiffpatch": "~0.1.4", "jsondiffpatch": "~0.1.4",
"xsd-schema-validator": "0.0.3", "xsd-schema-validator": "0.0.3",
"sax": "~0.6.0", "sax": "~0.6.0",
@ -72,6 +72,6 @@
"lodash": "~2.4.0", "lodash": "~2.4.0",
"didi": "~0.0.4", "didi": "~0.0.4",
"jquery": "~2.1.0", "jquery": "~2.1.0",
"jquery-mousewheel": "^3.1.11" "jquery-mousewheel": "~3.1.11"
} }
} }

View File

@ -3,12 +3,12 @@ module.exports = function(karma) {
basePath: '../../', basePath: '../../',
frameworks: [ 'jasmine', 'browserify' ], frameworks: [ 'browserify', 'jasmine' ],
files: [ files: [
'test/spec/browser/**/*Spec.js' 'test/spec/browser/**/*Spec.js'
], ],
reporters: [ 'dots' ], reporters: [ 'dots' ],
preprocessors: { preprocessors: {
@ -17,16 +17,12 @@ module.exports = function(karma) {
browsers: [ 'PhantomJS' ], browsers: [ 'PhantomJS' ],
// fixing slow browserify build
browserNoActivityTimeout: 60000,
singleRun: false, singleRun: false,
autoWatch: true, autoWatch: true,
// browserify configuration // browserify configuration
browserify: { browserify: {
debug: true, debug: true,
watch: true,
transform: [ 'brfs' ] transform: [ 'brfs' ]
} }
}); });