Open rmihirk opened 2 years ago
@wswebcreation @yon-cuadrado
Hi @rmihirk
Thanks for the issue, but pinging me doesn't make me solve this faster. I also have a day job 😉
I need to make some time free to dive into this, but feel free to also take a look at it
Ok. No problem. Actually, this issue big headache for me and my team. We are just recently moved from a protractor to wdio. Let me know if you need any help from my side.
Let me know if you need any help from my side.
Is there any chance your team can look into this and contribute to the project?
Sorry, We can't help here actually we don't know typescript. we are using js
@christian-bromann Sorry, actually we don't have much knowledge to solve this issue.
Actually, the issue is here. If lib calling another feature file !this.report.feature
returns false and scenario adds to the first feature file.
below function creating an issue here (File name reporter.ts and line no: 98)
if ( typeof this.report.feature.elements !== 'undefined' && payload.parent ) {
this.report.feature.elements.push( this.getScenarioDataObject( payload, this.report.feature.id ) );
}
This has been fixed with https://github.com/webdriverio-community/wdio-cucumberjs-json-reporter/releases/tag/v4.3.1, tested it and it works. Closing it for now
@wswebcreation Still not working.
ok, thanks for letting us know, we will take a look at it again
Environment (please complete the following information):
Config of webdriver.io and the reporter
Package.json File
Structure
Describe the bug wdio create only one JSON file name is the-internet-guinea-pig-website-3.json and it's add another JSON file result into the-internet-guinea-pig-website-3.json. that's why multiple-cucumber-html-reporter create the wrong reports.
To Reproduce Execute all cases just using
npm run wdio
Actual behavior
Expected behavior We need to consider here all feature files with valid reports.