Sunday, November 4, 2007

RubyConf 2007: Behaviour Driven Development with RSpec

David Chelimsky works at Articulated Man, Inc. Dave Astels works at Google.

Test Driven Development
  • incremental process
  • drives implementation with tests
  • results in an exhaustive regression test suite
  • should focus on design
  • should focus on documentation
  • should focus on behavior
Behavior Driven Development is like TDD, but with the following added:
  • includes focus on design
  • includes focus on documentation
  • includes focus on behavior
Short demo on ping-pong pair programming. You write the smallest test you can to cause failure. The other person writes the simplest code to make the test pass.

Overview of the BDD/RSpec Timeline.

November 2007 (knock on wood): RSpec-1.1.0
  • Introduce Story Framework
  • Beginning of Test::Unit compatibility
    • More work on this for 1.1.1 release
Customer to Code Agile Process:
  • Domain Driven Design
  • Acceptance Test Planning
  • Test Driven Development
  • Start by specifying at the highest levels
    • He starts out with the views, mocks out everything, and goes from there.
Story Framework - Executable User Stories

Something about rbehave flashed on the screen.

Demo of the Story Framework. Testing that read as prose (same concepts as Hoare Logic, but reads better). This looks pretty cool and useful.

Demo of a tool in its infancy that Tech Support, QA, and business people can use to poke the system.

Quick look at RSpec Results. You can have pending tests.

Something about integrating with legacy projects flashed on the screen.

miniunit/minirspec will be shipped with Ruby 1.9.

New hosting: rspec.lighthouseapp.com

Q1 2008: "Behavior Driven Development in Ruby with RSpec" (The Pragmatic Programmers)

No comments: