Skip to content

[🐛 Bug]: <Cucumber scenario description not included in result file> #8348

@db798

Description

@db798

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

7.16.16

Node.js Version

14.19.0

Mode

WDIO Testrunner

Which capabilities are you using?

No response

What happened?

As per the cucumber documentation it's possible to add a description to Features, Scenario and other feature file properties. In the result file generated the Feature description is populated but the Scenario is not, even though the field does exist.

Cucumber related packages used

"@cucumber/cucumber": "^7.3.2",
"@cucumber/pretty-formatter": "1.0.0-alpha.0",
"@wdio/cucumber-framework": "7.16.5",
"wdio-cucumberjs-json-reporter": "^3.0.0",

wdio.conf

reporters: [
    ['cucumberjs-json', {
      jsonFolder: './reports/',
      language: 'en',
    }],
    ['spec', {
      addConsoleLogs: true,
    }],
]

Feature File

Feature: My Feature

  This is my feature description

  Scenario: One
    
    This is my scenario description
    
        Given ....

  Scenario: Two

  etc.

Result File

 {
        "keyword": "Feature",
        "type": "feature",
        "description": " This is my feature description",
// more fields...
.....
"elements": [
            {
                "keyword": "Scenario",
                "type": "scenario",
                "description": "",
.....
}

You'll note above that the description is not set for the Scenario

What is your expected behavior?

No response

How to reproduce the bug.

Run a feature file with a description set for a scenario, the value will not be reported in your result file.

Relevant log output

N/A

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

    Labels

    Idea 💡A new feature ideagood first picka reasonable task to start getting familiar with the code basehelp wantedIssues that are free to take by anyone interested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions