DiffGen: Automated Regression Unit-Test Generation
Kunal Taneja, Tao Xie · IEEE/ACM International Conference on Automated Software Engineering (ASE) · 2008
Software programs continue to evolve throughout their lifetime. Maintenance of such evolving programs, including regression testing, is one of the most expensive activities in software development. We present an approach and its implementation called DiffGen for automated regression unit-test generation and checking for Java programs. Given two versions of a Java class, our approach instruments the code by adding new branches such that if these branches can be covered by a test generation tool, behavioral differences between the two class versions are exposed. DiffGen then uses a coverage-based test generation tool to generate test inputs for covering the added branches to expose behavioral differences. We have evaluated DiffGen on finding behavioral differences between 21 classes and their versions. Experimental results show that our approach can effectively expose many behavioral differences that cannot be exposed by state-of-the-art techniques.
Cited by 79 works. doi:10.1109/ase.2008.60
Authors
References
- Korat
- Supporting Controlled Experimentation with Testing Techniques: An Infrastructure and its Potential Impact
- Korat
- PIE: a dynamic failure-based technique
- MuJava: an automated class mutation system
- Parameterized unit tests
- Discovering Algebraic Specifications from Java Classes
- From daikon to agitator
- Augmenting Automatically Generated Unit-Test Suites with Regression Oracle Checking
- An Informal Formal Method for Systematic JUnit Test Case Generation