Closed
Description
What are you trying to achieve?
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.
# codeceptjs run --grep "Test login screen" --profile jobr --reporter mocha-multi
Details
- CodeceptJS version: 3.0.3
- NodeJS Version: v12.20.0
- mocha-multi: 1.1.3
- mochawesome: 6.1.1
- Operating System: Ubuntu 20.04/20.10
- Configuration file:
mocha: {
reporterOptions: {
"codeceptjs-cli-reporter": {
stdout: "-",
options: {
verbose: false,
debug: true,
steps: true
}
},
mochawesome: {
stdout: "./output/console.log",
options: {
reportDir: "./output",
reportFilename: "report"
}
},
"mocha-junit-reporter": {
stdout: "./output/console.log",
options: {
mochaFile: "./output/result.xml",
jenkinsMode: true,
attachments: true //add screenshot for a failed test
},
}
}
},