Reputation: 9724
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?
Upvotes: 1
Views: 410
Reputation: 521
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.
Upvotes: 2
Reputation: 307
Integration testing - When combining units together that interact with each other you need to conduct Integration testing to make sure that integrating these units together has not introduced any errors.
Regression testing - after integrating (and maybe fixing) you should run your unit tests again. This is regression testing to ensure that further changes have not broken any units that were already tested. The unit testing you already did has produced the unit tests that can be run again and again for regression testing.
Upvotes: 0