Skip to content

Commit

Permalink
Updates the unit tests run on the CI server to use major browsers in …
Browse files Browse the repository at this point in the history
…headless mode

Signed-off-by: Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
  • Loading branch information
AlexandreBonneau committed Oct 15, 2019
1 parent 70fd4a5 commit f396eb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,12 @@
"test:unitc": "karma start test/unit/karma.conf.js --single-run --browsers Chrome",
"test:unitpp": "karma start test/unit/karma.conf.js --single-run --browsers PhantomJS --reporters 'progress'",
"test:unitfp": "karma start test/unit/karma.conf.js --single-run --browsers Firefox --reporters 'progress'",
"test:unitfhp": "karma start test/unit/karma.conf.js --single-run --browsers FirefoxDeveloperHeadless --reporters 'progress'",
"test:unitcp": "karma start test/unit/karma.conf.js --single-run --browsers Chrome --reporters 'progress'",
"test:unitchp": "karma start test/unit/karma.conf.js --single-run --browsers ChromeHeadless --reporters 'progress'",
"test:unitheadless": "karma start test/unit/karma.conf.js --single-run --browsers FirefoxDeveloperHeadless,ChromeHeadless --reporters 'progress'",
"test:e2e": "wdio test/e2e/wdio.local.conf.js",
"travis:test": "yarn test:unitp",
"travis:test": "test:unitheadless",
"travis:lint": "yarn lint",
"es-check": "es-check es5 dist/*.js"
},
Expand Down
2 changes: 2 additions & 0 deletions test/unit/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ module.exports = function(config) {
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: [
'Chrome',
'ChromeHeadless',
'Firefox',
'FirefoxDeveloperHeadless',
'PhantomJS',
],

Expand Down

0 comments on commit f396eb2

Please sign in to comment.