mmar
mmar

Reputation: 2030

How to log output in cypress cucumber html report?

I am using @badeball/cypress-cucumber-preprocessor for my automation. I am looking for how to print output/log in html report. In Cucumber-Java I have scenario.write("hello"); statement to print messages in cucumber html report. Likewise how can i print in Cypress-Cucumber report?

Upvotes: 1

Views: 1137

Answers (2)

Hemanth Chowdary
Hemanth Chowdary

Reputation: 1

This should work.

cy.log("hello")

Upvotes: 0

mmar
mmar

Reputation: 2030

I guess I found an answer and it works, but let me know if there is any other option.

attach("hello world");

Upvotes: 1

Related Questions