-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Closed
Copy link
Labels
🐛 bugDefect / BugDefect / Bug✅ acceptedThe core team has agreed that it is a good idea to fix thisThe core team has agreed that it is a good idea to fix thisgood first issueGood for newcomersGood for newcomers
Description
Describe the bug
In order to save time, I'm trying to use cucumber-js to target individual features and examples (a lot of them). I'm using these arguments:
$ npx cucumber-js "features/foo.feature:33" "features/foo.feature:34"
(to target 2 examples)
However, instead of saving time, it just takes more time. It seems that both examples are now executed twice.
To Reproduce
- Follow the nodejs example: https://github.com/cucumber/cucumber-js/blob/main/docs/nodejs_example.md
- Execute
npx cucumber-js features/simple_math.feature:19
, see:... 1 scenario (1 passed) 3 steps (3 passed)
- Same for line 20,
npx cucumber-js features/simple_math.feature:20
, see:... 1 scenario (1 passed) 3 steps (3 passed)
- Now, execute
npx cucumber-js features/simple_math.feature:19 features/simple_math.feature:20
, see:............ 4 scenarios (4 passed) 12 steps (12 passed)
Expected behavior
...
2 scenario (2 passed)
6 steps (6 passed)
Desktop (please complete the following information):
- OS: Windows
- cucumberjs v7.3.0
- npm 6.14.11, node v12.21.0
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Metadata
Metadata
Assignees
Labels
🐛 bugDefect / BugDefect / Bug✅ acceptedThe core team has agreed that it is a good idea to fix thisThe core team has agreed that it is a good idea to fix thisgood first issueGood for newcomersGood for newcomers