Junior
What is the difference between unit tests and integration tests?
sobes.tech AI
Answer from AI
Unit tests verify individual, independent components (classes, methods) in isolation, focusing on the correctness of their internal logic. They simulate dependencies using mocks or stubs. They are fast to execute.
Integration tests verify the interaction between multiple, integrated components or subsystems, including their interaction with external dependencies (databases, third-party services). They are slower than unit tests.