Practical TDD: It's iterative(malethan.com) |
Practical TDD: It's iterative(malethan.com) |
object MiddleOutNumberSorterSpec extends Specification with ScalaCheck {
"MiddleOutNumberSorter" should {
"reject even number counts and throw an exception" in { }
"return a list of the same length as the count specified" in { }
"produce 3 numbers in the correct order" in { }
"produce 5 numbers in the correct order" in { }
"produce 15 numbers in the correct order" in { }
}
}
A friend of mine basically quit his job over this issue at a TDD-only startup, so he said. I need to write up a post about what I do instead.(To be fair, in classical TDD you only write one test to start.)
With regard to hacking something up quickly, I see no issue with this. I spike code all the time to prove a point or try out something new. If it's worthy of putting into production I'll engage in that 'ceremony' you mention. Though, theres not much that's ceremonial about it :)