Skip to main content

How do integration tests criticize design? [Resolved]

I'm having a read at J.B. Rainsberger's blog post on integrated tests and wonder in which way an integration test is more harsh with our design?

We write more integrated tests, which are bigger and don’t criticize our design as harshly as microtests do


Question Credit: noodle
Question Reference
Asked August 28, 2018
Posted Under: Programming
9 views
3 Answers

He means that good software design is better informed by unit tests than integration tests.

Here's why. Writing unit tests forces you to write code that is unit-testable. Unit-testable code tends to be a better design than code that doesn't have unit tests.

Integration tests don't inform your code in the same way because you're just testing the outer layer of your software, not the inner interfaces that connect your software together.


credit: Robert Harvey
Answered August 28, 2018
Your Answer
D:\Adnan\Candoerz\CandoProject\vQA