小编tes*_*itz的帖子

Cypress 和黄瓜预处理器升级后,黄瓜标签不起作用

Cypress从升级9.5.210.3.0,之前我使用cypress-cucumber-preprocessor:4.3.1现在我将其升级到@badeball/cypress-cucumber-preprocessor:^11.4.0

升级之前,我使用cypress-tags命令来运行测试

npx cypress-tags run --env TAGS="@regression" --browser chrome
Run Code Online (Sandbox Code Playgroud)

但升级后它给我带来了以下错误。

npm ERR! could not determine executable to run
Run Code Online (Sandbox Code Playgroud)

请找到下面的示例功能

Feature: Login Features

    @regression
    Scenario: Test sample login
        Given I login to the website as "testUser"
Run Code Online (Sandbox Code Playgroud)

有人可以帮助我获得基于最新 Cypress 和 Cucumber 标签运行测试的替代选项吗?

cucumber cypress cypress-cucumber-preprocessor

9
推荐指数
2
解决办法
8640
查看次数