re: Need advice: How do you write tests? VIEW POST

VIEW FULL DISCUSSION
 

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

code of conduct - report abuse