Java-Based Regression Testing

IAmYourFaja picture IAmYourFaja · Sep 21, 2011 · Viewed 13.7k times · Source

How is regression testing performed in Java? Are there automated regression test frameworks or do you just write (JUnit) unit tests that help ensure against regressions?

Is there a way or set of best practices for coding unit tests so that they also serve the dual purpose of being regression tests, or do you need to keep regression tests separate from your unit tests?

Answer

Woot4Moo picture Woot4Moo · Sep 21, 2011

Regression testing has nothing to do with a language. It is a technique that is used to ensure future code changes do not break existing features. In Java you can use junit or testng or anything else. Typically a regression test is a functional test and is not a pure unit test.