Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Cucumber.js: Cuke up your JavaScript!

jbpros
October 05, 2012

Cucumber.js: Cuke up your JavaScript!

We're now living the golden age of JavaScript. An increasingly number of people are seeing it as a complete language. Therefore, agile development practices are now being adapted and applied to JavaScript code production. However, there has been a lack of support tools in the JS ecosystem, compared to what can be found on other platforms.

A year ago, native BDD solutions similar to Cucumber were almost inexistant. Yet the need for it was manifest. It didn't take me long before I proposed and started hacking on the port of our favourite cucurbitaceae.

Cucumber.js is a native JavaScript implementation of Cucumber. It is a strict port that can run on any JavaScript environment. It runs on Node.js as well as within any browsers, making it virtually serviceable against everything producing JavaScript and HTML (Node.js, Ruby on Rails, PHP, .Net, etc.).

This is an introduction to the young Cucumber.js. After briefly exposing the history and goals of the project, I'll demonstrate how to write features, step definitions, hooks, support code, how to invoke it from both Node.js and browser environments.

Presented at:
- CukeUp! 2012: http://skillsmatter.com/podcast/agile-testing/cucumber-js-cuke-up-your-javascript
- LNUG June 2012: http://lnug.org/

jbpros

October 05, 2012
Tweet

More Decks by jbpros

Other Decks in Programming

Transcript

  1. ?

  2. Kite App Browser DSL Step defs Selenium Driver World Cukestall

    Driver Zombie.js Driver iFrame Zombie.js Gherkin EXP ER IM EN TAL