我正在使用
@badeball/cypress-cucumber-preprocessor
进行自动化。我正在寻找如何在 html 报告中打印输出/日志。在 Cucumber-Java 中,我有 scenario.write("hello");
语句来在 Cucumber html 报告中打印消息。同样,我如何在 Cypress-Cucumber 报告中打印?
我想我找到了答案并且它有效,但请告诉我是否还有其他选择。
attach("hello world");
Cypress.log("hello")