找不到要运行的测试。我们查看了但没有找到cypress.json

时间:2019-10-25 19:04:20

标签: javascript node.js ui-automation cypress

我已经在项目中安装了赛普拉斯,并且尝试使用npx cypress run运行赛普拉斯时,出现以下错误:

  

找不到要运行的测试。
  我们查看了但在此文件夹中找不到cypress.json文件...

enter image description here

1 个答案:

答案 0 :(得分:2)

如果您是第一次运行,我想您需要输入try { Robot robot = new Robot(); robot.keyPress(KeyEvent.VK_TAB); robot.keyRelease(KeyEvent.VK_TAB); } catch (AWTException e) { e.printStackTrace(); } 。创建项目后,您就可以使用npx cypress open