aspose file tools*
The moose likes Testing and the fly likes Cucumber testing, loading transforms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Cucumber testing, loading transforms" Watch "Cucumber testing, loading transforms" New topic
Author

Cucumber testing, loading transforms

Roger Holmes
Greenhorn

Joined: Mar 14, 2012
Posts: 2
I am currently using the online tutorials to teach myself Cucumber.
I'm currently struggling to find a way to delay the loading of dependent step definitions until I have loaded my transforms.rb file but i can't avoid the constant reassignment warnings. Can anyone help ?

Thanks,
Roger
Matt Wynne
author
Greenhorn

Joined: Feb 17, 2012
Posts: 14
Hi Roger,

Have you tried putting the transforms.rb file into features/support? That folder is loaded automatically by Cucumber (before your step defs are loaded) so you shouldn't need to require any files in there explicitly.

There's plenty of info on using transforms in our book ;)


cheers,
Matt

--
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
Founder, http://www.relishapp.com/
Twitter, https://twitter.com/mattwynne
Roger Holmes
Greenhorn

Joined: Mar 14, 2012
Posts: 2
Thanks Matt, that did the job ! Please keep up the good work on Cucumber !

Cheers,
Roger
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cucumber testing, loading transforms