Skip to content

Mochawesome HTML report: Missing scenario steps (stack) in CodeceptJS 3 when scenario fails #2727

Description

@mirao

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:

image

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:

image

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},}}},

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions