Skip to content

Commit

Permalink
remove $ from filtering doc
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgoss committed Jan 15, 2024
1 parent 7199721 commit e1e6649
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/filtering.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ You can use a few different configurations to have Cucumber filter which scenari
You can specify an individual feature file to be run:

- In a configuration file `{ paths: ['features/my_feature.feature'] }`
- On the CLI `$ cucumber-js features/my_feature.feature`
- On the CLI `cucumber-js features/my_feature.feature`

You can also specify a line within a file to target an individual scenario:

- In a configuration file `{ paths: ['features/my_feature.feature:3'] }`
- On the CLI `$ cucumber-js features/my_feature.feature:3`
- On the CLI `cucumber-js features/my_feature.feature:3`

This option is repeatable, so you can provide several values and they'll be combined.

Expand All @@ -21,7 +21,7 @@ This option is repeatable, so you can provide several values and they'll be comb
You can specify a regular expression against which scenario names are tested to filter which should run:

- In a configuration file `{ name: ['^start.+end$'] }`
- On the CLI `$ cucumber-js --name "^start.+end$"`
- On the CLI `cucumber-js --name "^start.+end$"`

To escape special regex characters in scenario name, use backslashes e.g., `\(Scenario Name\)`

Expand All @@ -32,7 +32,7 @@ This option is repeatable, so you can provide several expressions and they'll al
You can specify a [Cucumber tag expression](https://docs.cucumber.io/cucumber/api/#tag-expressions) to only run scenarios that match it:

- In a configuration file `{ tags: '@foo or @bar' }`
- On the CLI `$ cucumber-js --tags "@foo or @bar"`
- On the CLI `cucumber-js --tags "@foo or @bar"`

This option is repeatable, so you can provide several expressions and they'll be combined with an `and` operator, meaning a scenario needs to match all of them.

Expand All @@ -41,7 +41,7 @@ This option is repeatable, so you can provide several expressions and they'll be
You can specify the order that scenarios should run in:

- In a configuration file `{ order: 'defined' }`
- On the CLI `$ cucumber-js --order defined`
- On the CLI `cucumber-js --order defined`

The default is `defined` where scenarios are run in the order they are discovered in. This roughly means alphabetical order of file path followed by sequential order within each file, although if you pass multiple globs/paths to the `paths` option this order will be honoured.

Expand Down

0 comments on commit e1e6649

Please sign in to comment.