I've been doing some work testing web applications with Cucumber and I currently have a number of steps set up to run with Culerity. This works well, but there are times when it would be nice to run the exact same stories in Selenium.
I see two possible approaches that may work:
- Writing each step so that it performs the step appropriately depending on the value of some global variable.
- Having separate step definition files and somehow selectively including the correct one.
What is the preferred method for accomplishing this?