Integration test checks that when units are combined, the systems fucntions well.
Regression tests also do the same. What is the example for difference between these?
An integration test is testing of different modules or components working together. A regression test is testing previously tested features to ensure that new changes have not introduced new bugs in the existing functionalities.
For example, you are testing the interaction between a payment gateway and your e-commerce application; this is called an integration test. After fixing a bug in price calculation logic, you need to verify that the fix did not affect other parts of the system; this is called a regression test.