cypress run && node cucumber-html-report.js 在断言失败时不生成 html 报告

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

我想在断言失败时在 cypress 中生成 html 报告。

我正在使用“multiple-cucumber-html-reporter”并且我能够在所有通过时生成。

cucumber cypress ui-automation cypress-cucumber-preprocessor
2个回答
0
投票

失败时

cypress run
返回非零退出代码,
&&
只有在前一个调用以成功的退出代码结束时才会继续执行。您需要将
&&
切换为
;


0
投票

尝试使用

柏树跑||节点黄瓜-html-report.js

这对我有用

© www.soinside.com 2019 - 2024. All rights reserved.