Regression Testing is another type of testing which ensures that previously built software performs the same way after making some changes to it or interfacing it with other software.
Regression Tests can be written before or after a bug is found.
They provide an assurance that an increase in a program's complexity doesn't introduce new bugs.