DEV Community

[Comment from a deleted post]
Collapse
 
anortef profile image
Adrián Norte • Edited

Unit Tests: checks that the classes fan-out is according to contract and can be used also to ensure that you do not have coupling or lack cohesion by checking the complexity of the tests.

Integration Tests: checks that the code does what it's supposed to do.

Both serve different purposes and are not mutually exclusive.

2 unit test 0 integration test