When I reacted to their answers by telling the class that TDD’s primary benefit is to improve the design of our code, they were caught entirely off guard. And when I told them that any regression safety gained by TDD is at best secondary and at worst illusory, they started looking over their shoulders to make sure their manager didn’t hear me. This did not sound like the bill of goods they had been sold.

Derived values in Spock where tables

Over on ad-hockery — my new go-to cheat sheet for using expect/where and @Unroll in Spock tests.

Reblogged from Ad-Hockery