diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-22 00:05:44 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-22 00:05:44 +0200 |
commit | fe486da549f69e50b0bd59433969eb4213663515 (patch) | |
tree | fba76cd2e93f4fc2515231daa96fea4adfc4b9b1 /js | |
parent | 6c09a9d37e27f80af94909af4da4a823c278d2db (diff) |
try to use firefox to run js unittests
Diffstat (limited to 'js')
-rw-r--r-- | js/Gruntfile.js | 10 | ||||
-rw-r--r-- | js/karma.conf.js | 8 |
2 files changed, 7 insertions, 11 deletions
diff --git a/js/Gruntfile.js b/js/Gruntfile.js index e40900f5a..844461e1f 100644 --- a/js/Gruntfile.js +++ b/js/Gruntfile.js @@ -134,16 +134,6 @@ module.exports = function (grunt) { continuous: { configFile: 'karma.conf.js', singleRun: true, - browsers: ['PhantomJS'], - preprocessors: { - 'build/app.js': 'coverage' - }, - coverageReporter: { - type: 'lcovonly', - dir: 'coverage/', - file: 'coverage.lcov' - }, - reporters: ['coverage'] } }, phpunit: { diff --git a/js/karma.conf.js b/js/karma.conf.js index 73c083350..504d4155b 100644 --- a/js/karma.conf.js +++ b/js/karma.conf.js @@ -15,6 +15,7 @@ module.exports = function (config) { frameworks: ['jasmine', 'traceur'], preprocessors: { + 'build/app.js': ['coverage'], 'tests/unit/stubs/*.js': ['traceur'], 'controller/**/*.js': ['traceur'], 'filter/**/*.js': ['traceur'], @@ -57,11 +58,16 @@ module.exports = function (config) { ], + coverageReporter: { + type: 'lcovonly', + dir: 'coverage/', + file: 'coverage.lcov' + }, // test results reporter to use // possible values: 'dots', 'progress' // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ['progress'], + reporters: ['coverage'], // web server port |