Skip to content
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
@mlvandijk

Description

@mlvandijk

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.

  1. Feature files: kebab-case.
  2. Step definition classes: PascalCase.
  3. Step definition methods lowercase_with_underscores.
  4. Feature file location. /src/main/resources/com/example/my/app
  5. Step definition locations com.example.my.app
  6. 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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions