Behavior Driven Design in practice: A Behat test run

By John Locke on June 3, 2015

For many years, we've organized our development around user stories. What exactly is each user trying to accomplish, and what does that look like when they try to accomplish those tasks?

For most of the past year, we've taken this a step further and adopted Behavior Driven Design. It's the same thing, really, with one fundamental difference: we have a tool to automate testing the user stories, and a more specific syntax to use that gets straight to the heart of the user story.

I'll write a lot more about Behavior Driven Design going forward, but today I just thought I would share a video we recorded several months ago about an actual BDD test run, using the Behat tool to execute the tests.

We've used Behat now on half a dozen projects, on both Drupal 6 and Drupal 7, and with a variety of custom problems solved. It has proven to be extremely useful as a communications tool, to reveal corner scenarios that indicate a need for extra development, catching regressions when features go awry, and much more.

Contact us if you'd like some complex new functionality added to an existing Drupal site, using Behavior Driven Development!

Topic

Comments

Add new comment

The content of this field is kept private and will not be shown publicly.

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <blockquote cite> <cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h1> <h2 id> <h3 id> <h4 id> <h5 id> <p> <br> <img src alt height width>
  • Lines and paragraphs break automatically.

Drupal Canvas — Block HTML (locked)

  • Allowed HTML tags: <strong> <em> <u> <a href> <p> <br> <ul> <ol> <li>

Drupal Canvas — Inline HTML (locked)

  • Allowed HTML tags: <strong> <em> <u> <a href>

More Like This

Laptop with coffee and pills
🕑Apr 07, 2020 🖋John Locke 💬2

Aggregate fields in Drupal 8 views

Views module has long been the killer feature of Drupal, making it easy for a site builder or skilled administrator to essentially create complex SQL queries through a web interface, without knowing SQL.

Rock climb
🕑Aug 05, 2017 🖋John Locke 💬2

Getting the group into the URL with Purl

The corners of Drupal 8 that aren't there are quickly dwindling, but there are still some that need to get worked out. While upgrading our internal issue tracker, we hit a new one -- getting a group context set via a URL alias, and generally keeping posts within a group.