tests: More descriptive Sauce Labs name

This commit is contained in:
Richard Hansen 2021-02-17 04:30:15 -05:00
parent 2994ef3c3c
commit 85231cb774
3 changed files with 23 additions and 7 deletions

View file

@ -27,9 +27,9 @@ process.on('exit', (code) => {
const sauceTestWorker = async.queue((testSettings, callback) => {
const browser = wd.promiseChainRemote(
config.host, config.port, config.username, config.accessKey);
const name =
`${process.env.GIT_HASH} - ${testSettings.browserName} ` +
`${testSettings.version}, ${testSettings.platform}`;
const name = [process.env.GIT_HASH].concat(process.env.SAUCE_NAME || []).concat([
`${testSettings.browserName} ${testSettings.version}, ${testSettings.platform}`,
]).join(' - ');
testSettings.name = name;
testSettings.public = true;
testSettings.build = process.env.GIT_HASH;