Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.23 KB

messages-report.md

File metadata and controls

25 lines (16 loc) · 1.23 KB

← Back to documentation

Messages reports

"Messages" refers to Cucumber Messages and is a low-level report / protocol for representing results and other information from Cucumber. JSON reports and HTML reports are derived from this report. Hence, messages report will implicitly be enabled if either of the mentioned reports are.

Messages reports can be enabled using the messages.enabled property. The preprocessor uses cosmiconfig, which means you can place configuration options in EG. .cypress-cucumber-preprocessorrc.json or package.json. An example configuration is shown below.

{
  "messages": {
    "enabled": true
  }
}

The report is outputted to cucumber-messages.ndjson in the project directory, but can be configured through the messages.output property.

Screenshots

Screenshots are automatically added to messages reports, including that of failed tests (unless you have disabled screenshotOnRunFailure).

Attachments

Attachments can also be added to messages reports through an API. This API is further explained in JSON report, but applies to messages reports as well.