• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Cucumber.js: Cuke up your JavaScript!
 

Cucumber.js: Cuke up your JavaScript!

on

  • 9,398 views

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 ...

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/

Statistics

Views

Total Views
9,398
Views on SlideShare
9,391
Embed Views
7

Actions

Likes
9
Downloads
48
Comments
0

2 Embeds 7

http://www.linkedin.com 5
https://twitter.com 2

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Cucumber.js: Cuke up your JavaScript! Cucumber.js: Cuke up your JavaScript! Presentation Transcript

    • ...Cuke up your JavaScript! @cucumber_js
    • Julien Biezemans @jbproshttp://jbpros.net
    • Why?
    • Behaviour-Driven Development
    • Outside-in
    • Tools?
    • RSpec
    • ?
    • Bootstrap
    • Environments
    • Node.js
    • CLI apps
    • Web apps Selenium
    • Headless web apps zombie.js, phantom.js, ...
    • Browser
    • Web apps
    • Cukecipes
    • Getting started
    • features/manage_recipes.feature
    • World
    • app/models/recipe.js
    • Tags
    • Hooks
    • Headless
    • Manyworlds
    • features/support/world.js
    • features/support/persistence_world.js
    • Zombie.js
    • Automated browser
    • Selenium
    • In-browser
    • http://is.gd/cukejs
    • http://is.gd/cukejs
    • Full stack http://is.gd/cukejs
    • http://is.gd/cukejs
    • Anyone can cuke.
    • How to set the context?
    • Photo: Richard Vantielcke - LudImaginary (http://www.ludimaginary.net)
    • Is it stable?
    • itself
    • Node.js & Ruby on Rails
    • .net, PHP, Java, ...
    • The future
    • EX P ER IM Kite EN TA LGherkin Selenium Browser Driver Step Cukestall DSL iFrame App defs Driver Zombie.js Zombie.jsWorld Driver
    • M EN features/support/kite_world.js E RIEXP
    • NT features/support/kite_world.js E R IM P EE X
    • T A EN R IM P EE X Cukestall
    • cucumber-html
    • Catch up with Cucumber.rb
    • Documentation* This book does not exist, obviously.
    • We need you!
    • http://checkthis.com/cukejs-talk