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

BDD with Cucumber @ Assert(js)

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →
Avatar for Ryan Marsh Ryan Marsh
February 22, 2018

BDD with Cucumber @ Assert(js)

Lightning talk at Assert(js) on BDD with Cucumber.

Avatar for Ryan Marsh

Ryan Marsh

February 22, 2018

Other Decks in Programming

Transcript

  1. Double-click to edit • Describe behavior in natural language* •

    + • Automated tests • = • Living documentation • * LOL yah more on this later
  2. Feature file Step definitions AST regex fn /…/ function() {

    … /…/ function() { … /…/ function() { … /…/ function() { … Tests ✅ ✅ ✅
  3. We’re communicating about complex systems with a brain that is

    selected for avoiding predators, poking things with a stick, and telling stories around a campfire
  4. “We must reduce precision in order to make meaningful statements

    about complex systems.” — Somebody who stole it from somebody else and then told it to me