Forum Discussion
aurelien-reeves
4 years agoStaff
Which language are you using? Ruby, JavaScript/Typescript or JVM? Or another one?
I am not sure with cucumber-jvm, but I would be surprise that it would not be the same as with cucumber-js and cucumber-ruby: you can have as many step definition files as you want. And as far as I know, you can also have as many hooks (before/after) as you want and organize those in your step definition files as you want too.
If you are using default, you even have nothing in particular to do.
For example, in cucumber-js, you can totally have something like that, execute cucumber, and it will automatically load the step definitions for you:
$ tree features
features
├── step_definitions
│ ├── steps-2.js
│ └── steps.js
└── test.feature
And the same with cucumber-ruby:
$ tree features
features
├── example.feature
├── step_definitions
│ ├── steps-2.rb
│ └── steps.rb
└── support
└── hooks.rb
Related Content
- 6 years ago
Recent Discussions
- 4 months ago
- 5 months ago