Integration testing – bridging components together
Once you understand the concepts of unit testing, especially when dealing with tricky security layers, you can expand your vision to integration testing. While writing unit tests, you can think of quality checks on bricks that are carried out to ensure that a wall built with those bricks will keep you and your family safe from rain, snow, and everything else. Integration testing assesses how well different pieces of our application work. This is where the complete application tests are run at full length: the module interaction, databases, web services, and interaction with all the other external systems required are cross-examined to affirm that it is all smooth.
Why integration tests? Are unit tests not enough to prove our application is robust? The quick answer is no. In unit tests, we are just proving the methods are working as expected, but in real life, the methods are not working on their own. They interact with other...