0

The report has these data. but not able to visualize

enter image description here

These are the generated report and JSON data.

enter image description here

Arun Prasad E S
  • 9,489
  • 8
  • 74
  • 87

1 Answers1

1

You can use HTML reports instead of JSON output, that in your codecept.conf.js add the following configurations:

Add Mochawesome helper to helpers:

  helpers: {
     Mochawesome: {
        "uniqueScreenshotNames": "true",
        "disableScreenshots" : "false"
     }
}

And add {"reportDir": "output"} to mocha configurations that will be something like this:

  mocha: {
     "reporterOptions": {
         "codeceptjs-cli-reporter": {
             "stdout": "-",
             "options": {
                "verbose": true,
                "steps": true,
               }
          },
         "mocha-junit-reporter": {
              "stdout": "./output/console.log",
              "options": {
                 "mochaFile": "./output/result.xml"
              }
         },
        "reportDir": "output",
        "inlineAssets": true,
        "reporter": "mochawesome"
      }
    }