如何将 cypress.json 文件传递​​给 cypress-tags

how can I pass the cypress.json file to cypress-tags

我正在使用 Cucumber 预处理器,我们没有标准的文件夹结构。 cypress.json 文件位于 e2e 文件夹下。打开 cypress 后,一切正常,因为我可以指定 cypress.json 文件位置。但是,使用 cypress-tags 运行,似乎无法指定 cypress.json 文件的位置,它只是失败并显示错误:

Failed to read cypress.json, using default configuration

Could not find a Cypress configuration file, exiting.

要用 Cucumber 支持不同的文件夹结构吗?

我也偶然发现了这个问题,并意识到这实际上不起作用。

作为一种解决方法,我因此放弃了使用 cypress-tags 的方法,而是调整了我的功能文件的命名。这使我能够避免使用 cypress-tags 并使用普通的 cypress 运行 命令而不是指定配置和功能文件,如:

cypress run --config-file some-cypress.json --spec **/*.integration.feature