These are chat archives for cucumber/cucumber-ruby

29th
Apr 2016
archon92
@archon92
Apr 29 2016 04:38
Hi All,Any idea on how to specify where cucumber should look for step_definitons and support instead of the conventional features/step_def/support?
through ruby code...i have tried to change the auto_load_code_paths with the Cucumber Runtime,did not seem to work
Matt Wynne
@mattwynne
Apr 29 2016 06:35
@archon92 you can pass --require on the command-line
archon92
@archon92
Apr 29 2016 09:26
@mattwynne Does doing that require recursively on a folder specified?
Aslak Hellesøy
@aslakhellesoy
Apr 29 2016 09:26
@archon92 yes
Matt Wynne
@mattwynne
Apr 29 2016 09:31
@archon92 yes. Effectively, Cucumber’s default is to —require features so you’re just overriding that to tell it which directory to load Ruby files from.
archon92
@archon92
Apr 29 2016 13:26
@mattwynne thanks a lot.One more query is it necessary that your env.rb be inside support folder? can we move it ?Cos i tried this and cucumber doesnt seem to recognize modules added to World anymore
Matt Wynne
@mattwynne
Apr 29 2016 15:49
Yeah that’s a special case I’m afraid
I’d love to loosen that stuff up, but I don’t have bandwidth
if you have ideas, do please start a discussion in an issue or even a PR @archon92
archon92
@archon92
Apr 29 2016 15:50
@mattwynne thanks a lot...will tr digging deeper over the weekend and get back to you.,..thank you