简体   繁体   English

如何在 Vue CLI 中修改 e2e 测试的位置?

[英]How to modify location of e2e tests in Vue CLI?

I try to modify the Cypress test files location using the cypress.json config parameters but no luck so far.我尝试使用cypress.json配置参数修改 Cypress 测试文件的位置,但到目前为止没有运气。

{
  "testFiles": "e2e/specs/*.spec.js"
}

I get the following error message:我收到以下错误消息:

Can't run because no spec files were found.

We searched for any files inside of this folder:

tests/e2e/specs

It seems like there is a base directory that I can't modify.似乎有一个我无法修改的基本目录。

try adding:尝试添加:

"integrationFolder": "e2e/specs" "integrationFolder": "e2e/specs"

in cypress.json在 cypress.json 中

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在WebStorm中调试Vue.js e2e测试? - How to debug Vue.js e2e tests in WebStorm? Instanbul JS、Vue JS、Vue CLI、Cypress e2e 测试和 Typescript 的覆盖率报告仅显示几个文件 - Coverage Reports with Instanbul JS, Vue JS, Vue CLI, Cypress e2e tests, and Typescript only showing a few files Vue:在初始 webpack 模板中未包含 E2E 测试后,您如何添加它们? - Vue: How do you add E2E tests after not including them in initial webpack template? 如何使用 Vite 编译 Cypress e2e 测试/文件? - How to compile Cypress e2e tests/files using Vite? Vue.js e2E测试Nightwatch:无论如何都要使用特定的config.test.js进行测试 - Vue.js e2E tests Nightwatch : anyway to run the test with a specific config.test.js 如何为必须连接到 Laravel API 的 Vue SPA 运行带有 cypress e2e 测试的 Jenkins CI? - How to run a Jenkins CI with cypress e2e test for Vue SPA that has to connect to Laravel APIs? Vue.js e2e w Nightwatch.js如何获取有关WebElements(WebDriver协议)的详细信息? - Vue.js e2e w Nightwatch.js how to get details on WebElements (WebDriver protocol)? CoreUi - 为什么 nightwatch 不能运行 e2e 测试? - CoreUi - why nightwatch cannot run e2e tests? vue create with e2e 显示奇怪的错误 - vue create with e2e showing strange error 使用 Cypress 和 NuxtJS 并在开始 e2e 测试之前等待服务器启动 - Use Cypress with NuxtJS and wait for server startup before starting e2e tests
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM