Category Archives: xUnit

Avoid Testing Implementation Details, Test Behaviours

Every so often I return to Kent Beck’s Test-Driven Development. I honestly believe it to be one of the finest software development books ever written. What I love about the book is its simplicity. There is a sparseness to it … Continue reading 

Also posted in ATDD, BDD, SOLID, STDD, TDD | 16 Comments

Where we are with acceptance testing and our BDD journey today

It’s a long post. Sorry about that. Get yourself a coffee and a comfy chair. I have spoken in the past about our path to Behavior-Driven Development (BDD) through Story Test Driven Development (STDD) and Acceptance Test Driven Development (ATDD). … Continue reading 

Also posted in ATDD, BDD, Behavior Specification, Fakes, STDD, TDD | 12 Comments

Making your code easier to understand context/specification style unit tests

When we started our current project we did not use context/specification style testing, instead we used testcase-per-class with a four-phase test model (also known as arrange-act-assert). Although we followed story-test driven development (STDD) we were not explicitly Behavior-Driven Development BDD … Continue reading 

Also posted in ATDD, BDD, Behavior Specification, STDD, TDD | 13 Comments

Learning and craftsmanship

Roy has a pretty thoughful post on the barrier to entry for most developers with Test-Driven Development. I hope I am not doing Roy a disservice by summarizing it as: we have made TDD unapproachable to many by making it … Continue reading 

Also posted in Agile, Fakes, Mocks, Object-Orientation, Stubs, TDD, XP | 23 Comments

TDD and Hard To Test Areas, Part 2

It’s been a while. I have been heads down on a new project (more about that some other time), and have not got around to posting. Without further ado here is the follow up post to TDD and Hart To … Continue reading 

Also posted in Agile, Fakes, Mocks, Object-Orientation, Stubs, TDD | 2 Comments

Mocks and the Dangers of Overspecified Software

I’ll be back on LINQ architecture after the holidays, but in the meantime, I wanted to share some of the bad, some of the places where we have had bitter experiences. When NMock first appeared we embraced the behaviour verification … Continue reading 

Also posted in Fakes, Mocks, Stubs, TDD | 5 Comments