You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Cypress无法识别指定文件夹中spec测试文件的问题求助

Cypress无法识别自定义目录下的测试用例

我编写了若干Cypress测试用例,但Cypress仅能识别默认的cypress\e2e目录下的文件,无法读取tests\e2e\specs目录中的测试用例。

我尝试修改cypress.json配置文件,先后使用了以下几种路径配置,均未生效:

{
  "pluginsFile": "tests/e2e/plugins/index.js",
  "integrationFolder": "tests" 
}

还试过设置"integrationFolder"为"tests/e2e/specs"和"PintAndPillageFrontend/tests/e2e/specs"。

相关截图:

内容的提问来源于stack exchange,提问作者SmugSnail

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.08 13:02:12