Appendix 2Cucumber and Other JVM Languages

Cucumber comes in several flavors—it has been ported from Ruby to JavaScript, C#, Java, PHP, and others. The choice of which flavor of Cucumber you use essentially comes down to what language you want to write your step definitions in. Since most languages offer libraries that let you drive web browsers or interact with web services, you can use any implementation of Cucumber if you want to drive these sorts of applications from the outside. You should therefore choose the Cucumber that offers the language that your team will be most comfortable writing the step definitions in.

However, if you want your steps to interact directly with the code of the system under test, it’s best to choose the version ...

Get The Cucumber for Java Book now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.