Skip to content

Allow override of --tags in profile #966

@tooky

Description

@tooky

Since merging #940 we are no longer able to override tags that we have specified in our profile.

e.g.

module.exports = {
  default: '--tags "not @wip"'
}

We will routinely tag scenarios that we are currently working on with @wip.

Feature: A feature
  Scenario: A completed scenario
    Given it passes

  @wip
  Scenario: A scenario we're working on
    Given it currently fails

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.:

$ cucumber -t @wip

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions