Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update integration tests to use latest Chrome, Firefox and Chrome Dev #19392

Merged
merged 25 commits into from
Nov 29, 2018
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add logging
  • Loading branch information
estherkim committed Nov 21, 2018
commit 41dc25c6c3dee6bc0e324bf1250a34bbaa2c9e23
12 changes: 7 additions & 5 deletions build-system/tasks/runtime-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const preTestTasks = argv.nobuild ? [] : (
(argv.unit || argv.a4a || argv['local-changes']) ? ['css'] : ['build']);
const extensionsCssMapPath = 'EXTENSIONS_CSS_MAP';

let browsers = [];
let saucelabsBrowsers = [];
/**
* Read in and process the configuration settings for karma
* @return {!Object} Karma configuration
Expand Down Expand Up @@ -71,7 +71,7 @@ function getConfig() {
throw new Error('Missing SAUCE_ACCESS_KEY Env variable');
}

browsers = argv.saucelabs ?
saucelabsBrowsers = argv.saucelabs ?
// With --saucelabs, integration tests are run on this set of browsers.
[
'SL_Chrome',
Expand All @@ -92,7 +92,7 @@ function getConfig() {

return Object.assign({}, karmaDefault, {
reporters: ['super-dots', 'saucelabs', 'karmaSimpleReporter'],
browsers: [], // Browser list is set during batch process
browsers: saucelabsBrowsers,
});
}
return karmaDefault;
Expand Down Expand Up @@ -399,6 +399,7 @@ async function runTests() {
// Run the tests.
mocha.run(function(failures) {
if (failures) {
log(green('There are failures. Now exiting'));
process.exit(1);
}
resolver();
Expand Down Expand Up @@ -553,11 +554,11 @@ async function runTests() {
while (left < right) {
log(green('Beginning batch number ' + batch));
const configBatch = c;
estherkim marked this conversation as resolved.
Show resolved Hide resolved
configBatch.browsers = browsers.slice(left, right);
configBatch.browsers = saucelabsBrowsers.slice(left, right);
await createKarmaServer(configBatch);
left = batch * batchSize;
batch++;
right = Math.min(batch * batchSize, browsers.length);
right = Math.min(batch * batchSize, saucelabsBrowsers.length);
}
estherkim marked this conversation as resolved.
Show resolved Hide resolved
} else {
await createKarmaServer(c);
Expand Down Expand Up @@ -619,6 +620,7 @@ async function runTests() {
// TODO(rsimha, 14814): Remove after Karma / Sauce ticket is resolved.
if (process.env.TRAVIS) {
setTimeout(() => {
log(green('Process timed out'));
estherkim marked this conversation as resolved.
Show resolved Hide resolved
process.exit(exitCode);
}, 5000);
} else {
Expand Down