Reputation: 33
Is there any way to call cucumber to exe some feature files that is written in java? (not as Junit)
Normally for ruby you can say cucumber features/somefeature.feature and it will exe step definitions in somefeature.rb
And for cpp you can do similar to call cucumber to to exe step definitions in cpp through wire protocol.
What my question is, is there any similar implementation in java, that you can call cucumber to exe step definitions in java.
I understand you can run cucumber - jvm as part of Junit test through mvn or gradle.
But I do not want to run this BDD test as part of the building process. I want to call cucumber at the last step in the CI, and it will exe any step definitions in Ruby, Cpp, Java
Upvotes: 0
Views: 474
Reputation: 4323
Cucumber-JVM can be executed from a JUnit runner. It can also be executed from a command line without using a JUnit runner. It sounds to that the last option is what you want.
Explore the CLI Runner and you might find something that fulfills your requirements.
Upvotes: 1