如何在 cypress cucumber html 报告中记录输出?

问题描述 投票:0回答:2

我正在使用

@badeball/cypress-cucumber-preprocessor
进行自动化。我正在寻找如何在 html 报告中打印输出/日志。在 Cucumber-Java 中,我有
scenario.write("hello");
语句来在 Cucumber html 报告中打印消息。同样,我如何在 Cypress-Cucumber 报告中打印?

javascript node.js cucumber cypress cypress-cucumber-preprocessor
2个回答
1
投票

我想我找到了答案并且它有效,但请告诉我是否还有其他选择。

attach("hello world");

0
投票
Cypress.log("hello")
© www.soinside.com 2019 - 2024. All rights reserved.