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

* 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-13 05:25:07 -06:00 committed by GitHub
parent 5b05c4cbc5
commit d5589bff48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View file

@ -32,6 +32,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)
@ -55,6 +56,7 @@ const functionalTestRunner = createFunctionalTestRunner({
mochaOpts: {
bail: cmd.bail,
grep: cmd.grep,
invert: cmd.invert,
},
updateBaselines: cmd.updateBaselines
}

View file

@ -81,6 +81,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

@ -23,7 +23,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');