-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Allow override of --tags
in profile
#966
Comments
Hmm, I think we need to pick one use case and stick with it. Does it make more sense for tags to be overridable or mergeable? In cucumber-js the other filters (name / file and line number) are mergeable and not overridable. Thus I think mergeable makes more sense. I personally dislike the For you case you could work around it currently by loading a different profile in order to not load the default profile. Is this tags option treated differently in other languages? |
Yeah, we are working around it by having multiple profiles for now, but we're ending up with a lot of them! I can't decide whether merging or overriding makes the most sense... Maybe we need to look at some more concrete examples. @charlierudolph can you try and describe an example where merging tags from the CLI with tags from a profile would make sense? |
See #939 for the example. I think tags should actually be merged with
@kozhevnikov @aslakhellesoy thoughts? |
+1 @charlierudolph that sounds spot-on. |
Personally it's difficult for me to visualise having both mergeable Couple of other options to throw out
|
I would hope by having include tags and exclude tags that people would no longer use not. If you want to exclude a particular tag use exclude tags. I was not thinking of merging the two but having the pickle_filter take in both includeTags and excludeTags. I don't like having separate options that can override each other as I think that is harder to follow |
But how would it work without overrides (sorry, not familiar with |
The two tags don't take any priority over each other. You would no longer be able to remove filters (which is consistent with the other filter options). Instead you would need to use a different profile. |
@mattwynne @tooky I think I'd prefer to go with just the I think the concept of having |
@charlierudolph yeah we've tidied up our profiles and only use the |
Since merging #940 we are no longer able to override tags that we have specified in our profile.
e.g.
We will routinely tag scenarios that we are currently working on with
@wip
.We expect these scenarios to fail and we don't want them to run as part of our build, but we do want to run them in development, e.g.:
This now results in the tag expression
not @wip and @wip
, and the scenarios don't run.I realise this is at odds with the goal of #940 so I wanted to open the discussion.
@aslakhellesoy is this better tackled in tag expressions?
Perhaps:
not @wip and @wip
=>@wip
and@wip and not @wip
=>not @wip
The text was updated successfully, but these errors were encountered: