Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I rename the step_definitions folder for Cucumber?

Tags:

cucumber

Cucumber works great for Behavior Driven Development, but I'd like to use shorter directory names. features/step_definitions? Why not features/steps? I suppose there is some way to change this in the cucumber.yml file, but I haven't had any luck finding a .yml file that does.

like image 656
Randall Bohn Avatar asked Oct 27 '25 05:10

Randall Bohn


1 Answers

You don't need to do anything. Cucumber searches for step definitions in subdirectories of 'features', so features/steps works the same as features/step_definitions.

like image 97
Randall Bohn Avatar answered Oct 29 '25 07:10

Randall Bohn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!