Skip to content

[🐛 Bug]: Running a single scenario using the scenario line number is not working in @wdio/cucumber-framework version 7.11.0 and later #7735

@nirmalcrafty

Description

@nirmalcrafty

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

latest

Node.js Version

v14.18.1

Mode

WDIO Testrunner

Which capabilities are you using?

{
"browserName": "chrome",
}

What happened?

Update "@wdio/cucumber-framework" to any version higher than 7.10.1 and notice if you try to ,Run scenario by line number
eg

wdio.js run wdio.conf.js --spec
./tests/e2e/a.feature:5

It will run the entire feature file with all the scenarios

What is your expected behavior?

The scenario which is present in the specified line number should be executed

How to reproduce the bug.

In package.json upgrade the "@wdio/cucumber-framework": "7.16.6", do an npm install and run any scenario in a feature file by passing the below command

say

wdio.js run wdio.conf.js --spec ./tests/e2e/a.feature:5

Note all the scenarios in the a.feature will be running, instead of the scenario present in line number 5

Relevant log output

The results of all the scenarios executed is displayed

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions