Gitlab CI 端到端测试失败,因为 webdriver-manager 未被识别为内部或外部命令
Gitlab CI End to End testing failing because of webdriver-manager is not recognized as an internal or external command
我正在做一个有一些端到端测试的 nodejs 项目。在我的本地测试 运行 很好,但由于无法识别 webdriver,它在我的 gitlab 管道中失败了。
我尝试以几种不同的方式安装 webdriver,例如 Protractor,但没有解决我的问题。如有任何帮助,我们将不胜感激。
这是我的gitlab-ci.yml文件
阶段:
- 建造
- 测试
before_script:
- npm install # 安装 npm 包
- npm 安装量角器-g
构建:
阶段:构建
脚本:
- npm run build
测试:
阶段:测试
脚本:
- npm run test:e2e
仅:
- master
管道错误
webdriver-manager 更新 --ignore_ssl --gecko false
'webdriver-manager' 未被识别为内部或外部命令
可运行的程序或批处理文件。
错误!代码生命周期
错误!错误号 1
错误! myproject@0.1.0 pree2e: webdriver-manager update --ignore_ssl --gecko false
错误!退出状态 1
也许能帮到你
https://github.com/serenity-js/serenity-js/issues/276
和 webdriver-manager is not recognized as an internal or external command, although I installed protractor globally (Jenkins)
我正在做一个有一些端到端测试的 nodejs 项目。在我的本地测试 运行 很好,但由于无法识别 webdriver,它在我的 gitlab 管道中失败了。
我尝试以几种不同的方式安装 webdriver,例如 Protractor,但没有解决我的问题。如有任何帮助,我们将不胜感激。
这是我的gitlab-ci.yml文件
阶段:
- 建造
- 测试
before_script:
- npm install # 安装 npm 包
- npm 安装量角器-g
构建:
阶段:构建
脚本:
- npm run build
测试:
阶段:测试
脚本:
- npm run test:e2e
仅:
- master
管道错误
webdriver-manager 更新 --ignore_ssl --gecko false
'webdriver-manager' 未被识别为内部或外部命令
可运行的程序或批处理文件。
错误!代码生命周期
错误!错误号 1
错误! myproject@0.1.0 pree2e: webdriver-manager update --ignore_ssl --gecko false
错误!退出状态 1
也许能帮到你 https://github.com/serenity-js/serenity-js/issues/276 和 webdriver-manager is not recognized as an internal or external command, although I installed protractor globally (Jenkins)