How can I reuse Cucumber-JVM Step Definitions in other projects to test some typical web actions. The point is that I\'ve created some java project just with Step Definition
Well, I've found solution. It appears quite easy.
There is annotation @CucumberOptions which has parameter "glue". Pointing with this parameter to the base package that has the step definitions forces Cucumber to search in that base package. The test runner will look like:
@RunWith(Cucumber.class)
@CucumberOptions(glue = { "com.example.stepdefspackage" })
public class Run{
}