Tag Archives: BDD

BDD Cheat Sheet

Epic A large or complex user story that should be broken into several smaller stories. Story A feature written as: AS A [person/role who will benefit], I WANT [some feature], SO THAT [some benefit or value is provided]. Scenario A story’s acceptance criterion, to be implemented as an executable test, and written as: GIVEN [some [...]

Posted in essays | Tagged | Leave a comment

Catching the “Little Things” with BDD

I’ve often read/heard the following kind of critique comparing TDD (Test-Driven Development) and BDD (Behavior-Driven Development): BDD is great, but unlike TDD, it can’t catch little things like obj.length vs. obj.length() Such assertions tell me that we need to improve how we teach BDD. BDD is TDD. Many argue BDD is simply TDD “done right”. [...]

Posted in essays | Also tagged , , , | 3 Comments

Separating behavior and persistence in models

Link: Separating behavior and persistence in models — @engineyard via @lukebayes Recall the Single Responsibility Principle: “There should never be more than one reason for a class to change.” As we commonly use them, ActiveRecord and DataMapper1 classes almost always violate this principle. There are usually at least two responsibilities handled by every AR/DM model: [...]

Posted in links | Also tagged , , | Leave a comment

Announcing GreenEggs for Bacon!

I have recently become a fan of using Christian Neukirchen’s Bacon test framework for my Rails projects. A lightweight tool, Bacon does not provide colorized terminal output ala RedGreen. So I created a lightweight companion to colorize Bacon output called GreenEggs. http://github.com/disinnovate/greeneggs Enjoy!

Posted in essays | Tagged | Leave a comment

Pair programming? TDD? Where is the proof?

Link: Pair programming? TDD? Where is the proof? via Panasonic Youth

Posted in links | Tagged | Leave a comment