在 gitlab 中将 cucumber.options 作为环境变量传递

Passing cucumber.options as environment variables in gitlab

我用一些按标签分割的特征集进行了黄瓜测试。测试可以在gitlab中运行ci。我需要的是能够通过传递环境变量 "cucumber.options" 来 运行 specific 测试。问题是我无法设置包含“.”的键。 我收到错误:"Variables key can contain only letters, digits and '_'" 有人可以帮我弄这个吗? 谢谢

Cucumber 还将识别用 -. 替换为 _ 的大写字母书写的属性。所以你可以使用 CUCUMBER_OPTIONS.

https://github.com/cucumber/cucumber-jvm/tree/master/core#properties-environment-variables-system-options