From 5692c78a0992d2056cf5933d86854bb07c2b1d23 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Tue, 3 Jan 2017 18:30:26 +0100 Subject: [PATCH] chore: run e2e tests concurrently in the ci (#2464) --- test/protractor.conf.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/protractor.conf.js b/test/protractor.conf.js index 80c9009bc4a..e9ede4993c2 100644 --- a/test/protractor.conf.js +++ b/test/protractor.conf.js @@ -45,10 +45,19 @@ if (process.env['TRAVIS']) { 'build': process.env['TRAVIS_JOB_NUMBER'], 'name': 'Material 2 E2E Tests', + // Enables concurrent testing in the Webdriver. Currently runs five e2e files in parallel. + maxInstances: 5, + shardTestFiles: true, + // By default Saucelabs tries to record the whole e2e run. This can slow down the builds. 'recordVideo': false, 'recordScreenshots': false }; + + // Because Protractor runs selenium instances concurrently in the CI and each instance + // will create a bloat of logs we don't want to show any info messages. + // Until protractor#1451 is solved, manually disable all info messages. + require('protractor/built/logger').Logger.prototype.info = () => {}; }