gitlab - 在 gitlab 中将 cucumber.options 作为环境变量传递
问题描述
我有一些由标签分割的功能集的黄瓜测试。测试可以在 gitlab ci 中运行。我需要的是能够通过传递环境变量“cucumber.options”来运行特定的测试。问题是我无法设置包含“。”的键。我收到错误:“变量键只能包含字母、数字和'_'”有人可以帮我吗?谢谢
解决方案
Cucumber 还将识别用大写字母书写-
并.
替换为 的属性_
。所以你可以使用CUCUMBER_OPTIONS
.
推荐阅读
- python - 是否可以将 jupyter 与 jenkins 和 github 连接起来
- reactjs - 自动打印 react.js 组件 HTML (jsx)
- node.js - MERN 文件从管理员上传到用户仪表板
- ios - 带有大写字母的`Xcodebuild`和带有小写`x`的`xcodebuild`有什么区别
- php - 根据数组本身中的值复制数组项
- firebase - 运行 Firebase pubsub 调度程序功能时权限被拒绝
- flutter - 生成带有密钥颤动的二维码
- reactjs - 如何使用 React 自定义钩子重新获取深度嵌套的对象?
- linux - gcloud 在远程实例上执行命令未按预期工作
- python - 将 Python Telegram Bot 部署到 Heroku