Category Archives: TDD

Scala TDD

String Calculator for Scala

This is a slight repurposing of the String Calculator kata on Roy Osherove’s website. I’ve updated it for my own impression of TDD, and for Scala notation and types, but many of the words are still arranged in Roy’s order. read more »

BDD PHP phpspec TDD Testing

Add value to legacy code using agile tools

Working with legacy code need not be the nightmare it is often portrayed as. Tools that are considered best practice for greenfield development can and should be used to support legacy codebases, and prepare them for new development to begin.

read more »

PHP phpspec TDD Testing

Considering what to test with phpspec

I have recently started using phpspec in place of PHPUnit as a PHP development tool. So far for me, the transition from TDD to specBDD is a fairly trivial one. The vocabulary used in the specs is slightly different to xUnit tools, and this seems to make me think more carefully about what I really want to test, or better, what behaviour I want my object to exhibit. read more »