Continuous test generation
Open Access
- 15 September 2014
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 55-66
Abstract
In object oriented software development, automated unit test generation tools typically target one class at a time. A class, however, is usually part of a software project consisting of more than one class, and these are subject to changes over time. This context of a class offers significant potential to improve test generation for individual classes. In this paper, we introduce Continuous Test Generation (CTG), which includes automated unit test generation during continuous integration (i.e., infrastructure that regularly builds and tests software projects). CTG offers several benefits: First, it answers the question of how much time to spend on each class in a project. Second, it helps to decide in which order to test them. Finally, it answers the question of which classes should be subjected to test generation in the first place. We have implemented CTG using the EvoSuite unit test generation tool, and performed experiments using eight of the most popular open source projects available on GitHub, ten randomly selected projects from the SF100 corpus, and five industrial projects. Our experiments demonstrate improvements of up to +58% for branch coverage and up to +69% for thrown undeclared exceptions, while reducing the time spent on test generation by up to +83%.Keywords
Funding Information
- Norges Forskningsråd
- Fundação para a Ciência e a Tecnologia (PTDC/EIA-CCO/116796/2010)
- Engineering and Physical Sciences Research Council (EP/K030353/1)
- Google (Test Amplification)
This publication has 25 references indexed in Scilit:
- Continuous test suite augmentation in software product lines2013
- Comparing non-adequate test suites using coverage criteria2013
- Understanding myths and realities of test-suite evolution2012
- A Hitchhiker's guide to statistical tests for assessing randomized algorithms in software engineeringSoftware Testing, Verification and Reliability, 2012
- EvoSuite2011
- Test data regeneration: generating new test data from existing test dataSoftware Testing, Verification and Reliability, 2010
- Automatic Testing of Object-Oriented Software2007
- An experimental evaluation of continuous testing during development2004
- JCrasher: an automatic robustness tester for JavaSoftware: Practice and Experience, 2004
- Predicting fault incidence using software change historyIEEE Transactions on Software Engineering, 2000