Agile development with Javascript [closed] Agile development with Javascript [closed] selenium selenium

Agile development with Javascript [closed]


For a full BDD testing Stack you could use:

1) cucumber.js + selenium + Soda (or other adapter for node) + node.js

or

2) cucumber.js + zombie.js + node.js

Personally I would go with the second option, since cucumber.js provides you with stub javascript code after parsing your scenarios/features/step definitions written in Gherkin syntax. you can use this code and additionally setup your zombie world and provide all the necessary assertion helper functions for your test suites and you are all setup. The only advantage I see in selenium is his Webdriver capabilities (sauce labs etc.) and the record functionalities, but I think the syntax used in zombie.js to drive the tests is pretty strait forward and maybe you don't need all the functionality selenium provides you.

About mocha and jasmine, if you want Gherkin syntax then none will provide you this feature, but if you like to write all your test in a Rspec syntax style you can go with one of these instead of cucumber.js, it all depends how important the Gherkin style is to you.