File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cucumber testing, loading transforms
 
Similar Threads
Cucumber book for commissioning
Minimum jar's to run Simple Cucumber with Junit
What kinds of applications do you built using Ruby?
Can Cucumber be integrated with a Java IDE?
BDD framework