-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Idea 💡A new feature ideaA new feature ideagood first picka reasonable task to start getting familiar with the code basea reasonable task to start getting familiar with the code basehelp wantedIssues that are free to take by anyone interestedIssues that are free to take by anyone interested
Description
Have you read the Contributing Guidelines on issues?
- I have 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/ACode 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Idea 💡A new feature ideaA new feature ideagood first picka reasonable task to start getting familiar with the code basea reasonable task to start getting familiar with the code basehelp wantedIssues that are free to take by anyone interestedIssues that are free to take by anyone interested