Types of Test
Unit Test
Test a unit of application without its external dependencies. Such as Files, Databases, Message queues, web services and so on.
Unit Test exercise your code without and external dependencies. They are Cheap to write and Execute fast. You can run hundreds of them just in few seconds. In this way, you can verify that each building block in your application it’s working as it’s expected.
However,since you’re not testing these classes or components with their external dependencies,
you can’t get a lot of confidence in the reliability of your application. So, that’s when integration tests come to the rescue
Integration Test
Integration Test tests a class or a component with its external dependencies