Red Green Repeat Adventures of a Spec Driven Junkie

Journey to TDD - Replicate Stakeholder Actions

If you found this article and want to start at the beginning, this series starts here.

After falling into the seemingly simple trap, I vowed to do everything I can to not fall into same trap again.

This meant testing an application “not designed for tests”. The code base was large, no documentation, and not well understood by stakeholders.

The worst kind of legacy application.

Even though the application was a Ruby on Rails application that has great hooks into testing, I started from Selenium with Ruby.

I was just figuring out Ruby on Rails myself so I was not confident starting there.

My real need was not a model or controller level test - it was to replicate stakeholder actions!

Only by programmically replicating stakeholder actions, can I even start to sleep better at night.

Replicating stakeholder actions took more time than to perform.