- 运行所有测试用例
npx cypress run
- 运行指定spec
npx cypress run --spec "cypress\intergration\demo.spec.js"
- 有无头切换(有在浏览器运行,无只在命令行运行)
npx cypress run --headed
- 指定浏览器
npx cypress run --browser=chrome
- 打开cypress工具
npx cypress open
npx cypress run
npx cypress run --spec "cypress\intergration\demo.spec.js"
npx cypress run --headed
npx cypress run --browser=chrome
npx cypress open