This repository was archived by the owner on Dec 21, 2024. It is now read-only.
This repository was archived by the owner on Dec 21, 2024. It is now read-only.
Add info on naming conventions for CucumberOptions #297
Open
Description
Q&A from Slack:
J Ku [19:17]
qq. i noticed that you can configure naming conventions using the @ CucumberOptions annotations. is there any documentation on, or any official convention on the matter? specifically, the naming convention for feature files vs step definitions (Java in my case), as well as things like function and variable naming?
mpkorstanje [19:33]
None that have been written down.
- Feature files: kebab-case.
- Step definition classes: PascalCase.
- Step definition methods lowercase_with_underscores.
- Feature file location.
/src/main/resources/com/example/my/app
- Step definition locations
com.example.my.app
- Runner class location:
com.example.my.app
This reduces the amount of configuration needed. So you benefit from convention over configuration which is always a nice convention.
If you do these things you don't have to configure glue
, or features
in @CucumberOptions
.