What is Regression testing?
Re-running existing tests after each design change to confirm that previously working features still work.
Japanese name: 回帰テスト
Re-running existing tests after each design change to confirm that previously working features still work.
Japanese name: 回帰テスト
Fixing a bug or adding a feature can break a part that seemed unrelated. Testing the new part alone does not reveal this. Regression testing runs the tests written so far as a set and checks whether any test that used to pass now fails. This cannot be repeated often if a person has to check waveforms. A self-checking testbench, which decides pass or fail by itself, is a prerequisite.
As the number of tests grows, running them takes time. With 2000 tests averaging 3 minutes each, the total is 6000 minutes, or 100 hours. Run in parallel on 50 machines, they finish in about 2 hours. A common split is to run a short representative set before a change is merged and the full set overnight. Random tests are run with a different random seed each time to widen what is exercised. A failing test is recorded together with its seed.
When a test that passed last time fails, the changes made in between are the candidate causes. Checking against the change history helps narrow down the cause. With random tests run on new seeds, however, a failure may be an old bug that has just been found. When a bug is fixed, a test that reproduces it is added to the regression suite. This keeps the same bug from slipping back in. Coverage, the record of what was exercised, is sometimes merged across the tests to follow the progress of verification.
Answer: C. Re-running the existing tests after every design change to confirm that previously working features have not broken
Fixing a bug or adding a feature can break something elsewhere unexpectedly. Regression testing automatically re-runs every test built so far to check that previously passing tests still pass. Large designs run thousands of tests almost daily and track the results in a summary. This automation is possible only with self-checking testbenches.
No. Regression here means going backward, where something that used to work stops working. The name comes from testing whether such a step backward has occurred.
Running them all is the ideal, but when that takes too long the runs are tiered. A common method is a short set of tests after each change and the full set overnight or at weekends. The longer the interval between full runs, the more effort it takes to narrow down the change responsible.
As an Amazon Associate I earn from qualifying purchases.
This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.