Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple --tags command-line arguments #939

Closed
kozhevnikov opened this issue Sep 28, 2017 · 1 comment
Closed

Support multiple --tags command-line arguments #939

kozhevnikov opened this issue Sep 28, 2017 · 1 comment

Comments

@kozhevnikov
Copy link
Member

Could you please support multiple -t arguments, presumably merging them into single (...) and (...) string before parsing it as a tag expression.

For example, if we define default profile as

module.exports = {
  default: '-t "not @todo" --compiler js:babel-register'
}

and create a scenario in TDD fashion (i.e. Gherkin only, without passing implementation) marking it with an ignore tag

Feature: Foo

  @foo
  Scenario: Lorem
    When foo
    Then bar

  @foo @todo
  Scenario: Ipsum
    When baz
    Then qux

Now when you run the tests with some flag, e.g. yarn test -t @foo, it overrides the default not @todo and executed unfinished scenario.

Would it be possible to support multiple tags, e.g. simple tags.map(tag =>`(${tag})`).join(' and ') to turn it into final tag expression before futher processing?

@lock
Copy link

lock bot commented Oct 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant