Integration vs E2E Testing: What worked for me as a charm?

When it comes to testing software applications, various testing techniques can be employed. Three common testing methods are unit testing , integration testing and end-to-end testing . All these different kinds of testing overlap, so you just can’t implement one or two forms of testing and you will be good. Like if you are in the initial stage of development you can write a few unit tests which a developer can run once he makes changes to a function. Further, if we have mocked most of the external dependencies we can check the compatibility between different modules and service layers. At last, we can do an e2e test to ensure the overall outcome of the application for a particular input. In a traditional development approach, testing activities were often performed towards the end of the SDLC, after the code had been developed. This approach is known as a " right shift " because testing is shifted to the right side of the development timeline. However, in rec...