You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mochawesome HTML report: Missing scenario steps (stack) in CodeceptJS 3 when scenario fails #2727
Mochawesome report shows scenario steps (stack) when a scenario fails. It's useful because of context - when it's not clear in which step it occurred.
This is how it looks in CodeeceptJS 2.6.11:
What do you get instead?
Missing scenario steps in CodeceptJS 3.0.3. There is only an "internal" stack from node modules which isn't too much useful:
Provide console output if related. Use --verbose mode for more details.
changed the title [-]Mochawesome HTML report: Missing scenario steps (stack) in CodeceptJS 3[/-][+]Mochawesome HTML report: Missing scenario steps (stack) in CodeceptJS 3 when scenario fails[/+]on Dec 21, 2020
I think I accidentally suppressed the gherkin error in 3.0.3 when i was adding logic for bddStep event. Instead of throwing the error it was returning on the whole step when error is encountered. I am not sure if this is related, but I have a fix for that here: #2745
Activity
elukoyanov commentedon Dec 21, 2020
yep, I see this error too on 3.0.2
For failed tests there are error stack and recorder code

For successful tests - some code

I am using WebDriver helper without gherkin steps.
Do you use gherkin, @mirao ?
mirao commentedon Dec 21, 2020
@elukoyanov No, I do not. I'm also using WebDriver without gherkin
[-]Mochawesome HTML report: Missing scenario steps (stack) in CodeceptJS 3[/-][+]Mochawesome HTML report: Missing scenario steps (stack) in CodeceptJS 3 when scenario fails[/+]ktryniszewski-mdsol commentedon Jan 4, 2021
I think I accidentally suppressed the gherkin error in 3.0.3 when i was adding logic for bddStep event. Instead of throwing the error it was returning on the whole step when error is encountered. I am not sure if this is related, but I have a fix for that here: #2745
kiranreddyk06 commentedon Feb 24, 2021
Hi, I face the same issue. I can not see any steps/verbose information in the report.
ShawnBaumbach commentedon Apr 13, 2021
I'm having the same issue, in the json file, context becomes null and the code is replaced with the same recorder.errHandler blob you posted.
Using the latest versions of mochawesome (6.2.2) and codeceptjs (3.0.6)
This only happens if you retry the test. The old data is replaced with this incorrect data.
Screenshots remain in the folder, but are also not displayed.
This was not a problem with 2.x.x