Title
1600 faults in 100 projects: automatically finding faults while achieving high coverage with EvoSuite
Abstract
Automated unit test generation techniques traditionally follow one of two goals: Either they try to find violations of automated oracles (e.g., assertions, contracts, undeclared exceptions), or they aim to produce representative test suites (e.g., satisfying branch coverage) such that a developer can manually add test oracles. Search-based testing (SBST) has delivered promising results when it comes to achieving coverage, yet the use in conjunction with automated oracles has hardly been explored, and is generally hampered as SBST does not scale well when there are too many testing targets. In this paper we present a search-based approach to handle both objectives at the same time, implemented in the EvoSuite tool. An empirical study applying EvoSuite on 100 randomly selected open source software projects (the SF100 corpus) reveals that SBST has the unique advantage of being well suited to perform both traditional goals at the same time--efficiently triggering faults, while producing representative test sets for any chosen coverage criterion. In our study, EvoSuite detected twice as many failures in terms of undeclared exceptions as a traditional random testing approach, witnessing thousands of real faults in the 100 open source projects. Two out of every five classes with undeclared exceptions have actual faults, but these are buried within many failures that are caused by implicit preconditions. This \"noise\" can be interpreted as either a call for further research in improving automated oracles--or to make tools like EvoSuite an integral part of software development to enforce clean program interfaces.
Year
DOI
Venue
2015
10.1007/s10664-013-9288-2
Empirical Software Engineering
Keywords
DocType
Volume
Search-based testing,Automated test generation,Test oracles
Journal
20
Issue
ISSN
Citations 
3
1382-3256
37
PageRank 
References 
Authors
1.05
34
2
Name
Order
Citations
PageRank
Gordon Fraser12625116.22
Andrea Arcuri232811.91