DEV Community

Discussion on: You don't know TDD

Collapse
 
anortef profile image
Adrián Norte

Your company is not using TDD and you can share this post with your coworkers.

Sounds like your company is using Unit Testing as the holy grail when it's only a tool of TDD that always have to be accompanied with integration tests (as I mention on the post).

Unit Test -> prevents coupling and ensure contracts between classes.
Integration Test -> ensures that your code makes sense.

Of course, if the majority of your unit tests are: "ClassA.dog() calls ClassB.sheep() with X when receive X" then you may be having a problem of cohesion.