Cucumber configuration using environment variables #2286
-
|
Could someone explain which features can be configured via environment variables? The official documentation only mentions the use of CUCUMBER_PUBLISH_TOKEN. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
It depends a bit on how you run Cucumber. If you're running with JUnit 5, then only system properties are supported. See: https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-junit-platform-engine#configuration-options |
Beta Was this translation helpful? Give feedback.
It depends a bit on how you run Cucumber.
If you're running with JUnit 5, then only system properties are supported. See: https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-junit-platform-engine#configuration-options
If you're running with JUnit 4, TestNG or the CLI, then all properties are supported as environment variables if written in
UPPER_SNAKE_CASE. See: https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-core#properties-environment-variables-system-options