У меня есть тесты на селен, которые проводятся с использованием огурца и wdio.
Мой файл wdio.conf.js выглядит так:
cucumberOpts: {
tagExpression: 'not @ignore',
},
У меня есть тесты, которые я пометил
@cats
Scenario: As a user I want to google cats
Given I have google open
When I type in 'cats'
And then I see pictures of cats
@dogs
Scenario: As a user I want to google dogs
Given I have google open
When I type in 'dogs'
And then I see pictures of dogs
@dogs @ignore
Scenario: As a user I want to google fierce dogs
Given I have google open
When I type in 'fierce dogs'
And then I see pictures of fierce dogs
Если я хочу выполнить все тесты собак, которые не были проигнорированы, я могу запустить:
./node_modules/.bin/wdio wdio.conf.js --cucumberOpts.tagExpression='@dogs and not @ignore'
То, что я хотел бы сделать, это просто запустить
./node_modules/.bin/wdio wdio.conf.js --cucumberOpts.tagExpression='@dogs'
(или аналогичный) из командной строки, чтобы он выбрал 'not @ignore' из файла wdio.conf.js.
Возможно ли это сделать?