Set suite name based on the --web parameter (#104798)

This commit is contained in:
Ladislau Szomoru 2020-08-17 11:51:59 +02:00 committed by GitHub
parent 43ceb72582
commit 652a432f59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,13 +7,14 @@ const path = require('path');
const Mocha = require('mocha');
const minimist = require('minimist');
const suite = 'Smoke Tests';
const [, , ...args] = process.argv;
const opts = minimist(args, {
boolean: 'web',
string: ['f', 'g']
});
const suite = opts['web'] ? 'Browser Smoke Tests' : 'Smoke Tests';
const options = {
color: true,
timeout: 60000,