cypress无头模式运行,生成测试报告
2.指定运行用例 npx cypress run --reporter=spec --spec cypress\integration\cypress-study\web\page\should_demo.spec.js
3.生成json格式的测试报告: npx cypress run -r json -o "toConsole=true" -s cypress\integration\cypress-study\web\page\should_demo.spec.js
4. 生成junit格式的测试报告:npx cypress run -r junit -o "mochaFile=results/test-output.xml,toConsole=true" -s cypress\integration\cypress-study\web\page\should_demo.spec.js
5.执行命令安装插件,生成html/css的测试报告: npm install --save-dev mocha@5.2.0 mochawesome
上面1,2,3,4都属于cyress自带的内置测试报告,5属于自定义测试报告
javascript
posted on 2022-09-19 06:37 sunny_2016 阅读(266) 评论(0) 收藏 举报