Add option to exclude tests in functional test runner (#19806) (#19851)

* Add option to exclude tests in functional test runner

* Move tag to end of test name
This commit is contained in:
liza-mae 2018-06-14 04:22:49 -06:00 committed by GitHub
parent c552b5af8e
commit 709e9acbbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View file

@ -13,6 +13,7 @@ cmd
.option('--config [path]', 'Path to a config file', resolveConfigPath, defaultConfigPath)
.option('--bail', 'stop tests after the first failure', false)
.option('--grep <pattern>', 'pattern used to select which tests to run')
.option('--invert', 'invert grep to exclude tests', false)
.option('--verbose', 'Log everything', false)
.option('--quiet', 'Only log errors', false)
.option('--silent', 'Log nothing', false)
@ -36,6 +37,7 @@ const functionalTestRunner = createFunctionalTestRunner({
mochaOpts: {
bail: cmd.bail,
grep: cmd.grep,
invert: cmd.invert,
},
updateBaselines: cmd.updateBaselines
}

View file

@ -62,6 +62,7 @@ export const schema = Joi.object().keys({
mochaOpts: Joi.object().keys({
bail: Joi.boolean().default(false),
grep: Joi.string(),
invert: Joi.boolean().default(false),
slow: Joi.number().default(30000),
timeout: Joi.number().default(INSPECTING ? Infinity : 180000),
ui: Joi.string().default('bdd'),

View file

@ -4,7 +4,7 @@ export default function ({ getService, getPageObjects }) {
const esArchiver = getService('esArchiver');
const PageObjects = getPageObjects(['common', 'home', 'settings']);
describe('test large number of fields', function () {
describe('test large number of fields @skipcloud', function () {
const EXPECTED_FIELD_COUNT = '10006';
before(async function () {
await esArchiver.loadIfNeeded('large_fields');