Reputation: 11309
I am new to BDD and Gherkin. Trying to use Cucumber, which parses Gherkin to Ruby - a language I don't know. Is there any library which converts Gherkin to Javascript ? If I get the Javascript output for Gherkin, I plan to modify the code and call some Javascript functions of my own. Please note, I am not planning to test these javascript functions - these functions are from some other testing tool I am trying to chain to. I Hope I am not planning to do something weird. All the problem is that our team does not want to learn Ruby. Please suggest some options.
I guess, what I need is a tool which allows me to write step definitions in javascript - as opposed to Ruby.
Thanks !
Upvotes: 0
Views: 1244
Reputation: 111
You can try a cucumber.js authoring tool, called CukeTest, it has the following relevant feature.
There are both desktop version available, or Windows Store version. Here is a demo:
Upvotes: 0
Reputation: 5283
Gherkin is a human-readable DSL, and cucumber doesn't care what language you use to create the step definitions.
While I don't see any javascript-specific examples on the cucumber wiki, you might want to check out cucumber.js.
Upvotes: 0
Reputation: 721
Cucumber.js is a good option and Kyuri is a good alternative if you the stuff from nodejitsu :) https://github.com/nodejitsu/kyuri
Upvotes: 0