我正在使用cypress和mochawesome来生成测试报告。我希望只有在出现故障时才会收到警报。是否可以在不解析json文件的情况下获得失败测试的数量?
柏树进程的退出代码将为您提供失败测试的数量:
npm run cypress # ... cypress runs... echo $? # print number of failed tests
或者对于Windows cmd提示:print exit code in cmd in windows os