Writing Steps in Scala

Scala is the new kid on the block that compiles directly to the JVM.

JBehave supports writing Steps classes directly in Scala, using the ScalaStepsFactory and providing the list of Scala classes found in the classpath:

The Scala classes must be compiled directly into Java bytecode.

The Scala steps classes contain annotated methods, just as you would in Java: