Like many Drupal teams, the CSRA/New Target web team at the Administrative Office of the US Courts is working to bring automated testing into our development and maintenance workflow. In this talk, I’ll share our current thinking on the following issues:
1. Why Behavior-Driven Development (BDD) is essential
2. Limits of using the Behat Drupal Extension for BDD
3. Why even the best behavior-driven development practices will not guarantee full regression test coverage
I will then demonstrate our behavior-driven development tool of choice, PHPSpec, and explain how to write Drupal 7 hooks that can be tested without bootstrapping Drupal.
Video producer: Bay Area Drupal Camp