Driving the Tests from the Domain
We did a good job so far, but how can we be sure that our acceptance tests will stay easy to read and maintain?
Unfortunately, as the application becomes more complicated, it’s very easy to end up with acceptance tests that are very hard to understand and maintain. This is because what we really want to test will be hidden behind layers of nonessential details about the user interaction.
Nat Pryce, who is a big proponent of using acceptance testing to drive the design, came out with the idea of domain-driven tests (DDT) after getting tired of working with acceptance tests that were slow and hard to change because they were written in a kind of “click here and then click there” way.[25] The name comes from the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access