赛普拉斯-将其安装在空项目中 [英] Cypress - install it on empty project

查看:96
本文介绍了赛普拉斯-将其安装在空项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在一个空项目上安装cypress.但是,cypress未安装在package.js文件中,并且cypress未包含在项目中.我该如何运作?我无法将cypress作为开发项目的一部分进行安装,因此我尝试使用cypress创建一个单独的测试自动化项目.

I am trying to install cypress on an empty project. However, cypress is not installed in the package.js file and cypress is not included on the project. How can I make it work? I cannot install cypress as part of the development project, so i am trying to create a separate test automation project with cypress.

推荐答案

通常,您将Cypress安装到您的开发项目中,但我认为您无法做到这一点.

Normally you install Cypress into your dev project, but I see you can't do that.

转到 https://www.cypress.io ,页面中间为立即下载.

下载后,解压缩到一个文件夹,在该文件夹中打开bash或cmd提示符,然后键入 Cypress .

After downloading, unzip to a folder, open bash or cmd prompt in that folder and type Cypress.

您会收到一些有关将其安装到您的项目中的警告,但它可以正常工作.

You get some warnings about installing into your project being preferred, but it works fine.

跑步者上有一个入门... 框.选择相同的文件夹,赛普拉斯将设置测试文件夹的结构

There's a To get started... box on the runner. Choose the same folder, and Cypress will set up the testing folder structure

/cypress
  /integration
    /examples       -- lots of sample tests here
  /support
  /plugins
  /fixtures
  etc

这篇关于赛普拉斯-将其安装在空项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆