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. |
Answered by
mpkorstanje
Oct 17, 2025
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 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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
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