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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Cucumber testing, loading transforms" Watch "Cucumber testing, loading transforms" New topic

Cucumber testing, loading transforms

Roger Holmes

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 ?

Matt Wynne

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 ;)


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

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

subject: Cucumber testing, loading transforms
Similar Threads
Can Cucumber be integrated with a Java IDE?
What kinds of applications do you built using Ruby?
BDD framework
Minimum jar's to run Simple Cucumber with Junit
Cucumber book for commissioning