Skip to content
This repository was archived by the owner on Jan 29, 2021. It is now read-only.

Commit

Permalink
Build: Added karma-parallel to run tests in parallel (fixes #44) (#46)
Browse files Browse the repository at this point in the history
* Build: Added karma-parallel to run tests in parallel (fixes #44)

* Fix: Force multiple executors in karma config

* Build: Test usig xvfb for travis

* Fix: Added xvfb service

* Revert: xvfb since we are using ChromeHeadless and puppeteer
  • Loading branch information
abhijit945 authored Jul 17, 2019
1 parent 5b41a5c commit 4ede730
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 17 deletions.
6 changes: 5 additions & 1 deletion build/karma/karma.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,18 @@ module.exports = function(config) {
"../../node_modules/@babel/polyfill/dist/polyfill.js",
"../webpack/tests.webpack.js"
],
frameworks: ["jasmine"],
frameworks: ["parallel", "jasmine"],
preprocessors: {
"../webpack/tests.webpack.js": ["webpack", "sourcemap"]
},
reporters: ["progress", "coverage"],
webpackMiddleware: {
stats: "errors-only"
},
parallelOptions: {
executors: 4,
shardStrategy: "round-robin"
},
webpack: {
mode: "development",
devtool: "inline-source-map",
Expand Down
67 changes: 51 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"karma-chrome-launcher": "^2.2.0",
"karma-coverage": "^1.1.2",
"karma-jasmine": "^2.0.1",
"karma-parallel": "^0.3.1",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^3.0.5",
"less": "^3.9.0",
Expand Down

0 comments on commit 4ede730

Please sign in to comment.