File tree 4 files changed +3
-33
lines changed
4 files changed +3
-33
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ Please see [CONTRIBUTING.md](https://github.com/cucumber/cucumber/blob/master/CO
12
12
### Breaking changes
13
13
14
14
* Drop support for Node.js 10 and 15, add support for Node.js 16
15
+ * Remove deprecated ` --retryTagFilter ` option (the correct option is ` --retry-tag-filter ` )
15
16
16
17
### Added
17
18
Original file line number Diff line number Diff line change @@ -12,27 +12,6 @@ Feature: Retry flaky tests
12
12
"""
13
13
And it fails
14
14
15
- @spawn
16
- Scenario : running Cucumber JS with --retryTagFilter in camel case will result in a warning
17
- Given a file named "features/a.feature" with:
18
- """
19
- Feature:
20
- Scenario:
21
- Given a step
22
- """
23
- Given a file named "features/step_definitions/cucumber_steps.js" with:
24
- """
25
- const {Given} = require('@cucumber/cucumber')
26
-
27
- Given(/^a step$/, function() {})
28
- """
29
- When I run cucumber-js with `--retry 1 --retryTagFilter @flaky`
30
- Then the error output contains the text:
31
- """
32
- the argument --retryTagFilter is deprecated and will be removed in a future release; please use --retry-tag-filter
33
- """
34
- But it passes
35
-
36
15
Scenario : running Cucumber JS with negative --retry will fail
37
16
When I run cucumber-js with `--retry -1`
38
17
Then the error output contains the text:
@@ -590,4 +569,4 @@ Feature: Retry flaky tests
590
569
Then it fails
591
570
And scenario "Failing" attempt 0 step "Given a failing step" has status "failed"
592
571
And scenario "Failing" attempt 1 step "Given a failing step" has status "failed"
593
- And scenario "Passing" step "Given a passing step" has status "skipped"
572
+ And scenario "Passing" step "Given a passing step" has status "skipped"
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ const ArgvParser = {
200
200
0
201
201
)
202
202
. option (
203
- '--retryTagFilter, -- retry-tag-filter <EXPRESSION>' ,
203
+ '--retry-tag-filter <EXPRESSION>' ,
204
204
`only retries the features or scenarios with tags matching the expression (repeatable).
205
205
This option requires '--retry' to be specified.` ,
206
206
ArgvParser . mergeTags ,
@@ -236,14 +236,6 @@ const ArgvParser = {
236
236
args : program . args ,
237
237
}
238
238
} ,
239
-
240
- lint ( fullArgv : string [ ] ) : void {
241
- if ( fullArgv . includes ( '--retryTagFilter' ) ) {
242
- console . warn (
243
- 'the argument --retryTagFilter is deprecated and will be removed in a future release; please use --retry-tag-filter'
244
- )
245
- }
246
- } ,
247
239
}
248
240
249
241
export default ArgvParser
Original file line number Diff line number Diff line change @@ -59,8 +59,6 @@ export default class ConfigurationBuilder {
59
59
60
60
constructor ( { argv, cwd } : INewConfigurationBuilderOptions ) {
61
61
this . cwd = cwd
62
-
63
- ArgvParser . lint ( argv )
64
62
const parsedArgv = ArgvParser . parse ( argv )
65
63
this . args = parsedArgv . args
66
64
this . options = parsedArgv . options
You can’t perform that action at this time.
0 commit comments