Title :
Empirically Evaluating the Quality of Automatically Generated and Manually Written Test Suites
Author :
Kracht, Jeshua S. ; Petrovic, Jacob Z. ; Walcott-Justice, Kristen R.
Author_Institution :
Dept. of Comput. Sci., Univ. of Colorado, Colorado Springs, CO, USA
Abstract :
The creation, execution, and maintenance of tests are some of the most expensive tasks in software development. To help reduce the cost, automated test generation tools can be used to assist and guide developers in creating test cases. Yet, the tests that automated tools produce range from simple skeletons to fully executable test suites, hence their complexity and quality vary. This paper compares the complexity and quality of test suites created by sophisticated automated test generation tools to that of developer-written test suites. The empirical study in this paper examines ten real-world programs with existing test suites and applies two state-of-the-art automated test generation tools. The study measures the resulting test suite quality in terms of code coverage and fault-finding capability. On average, manual tests covered 31.5% of the branches while the automated tools covered 31.8% of the branches. In terms of mutation score, the tests generated by automated tools had an average mutation score of 39.8% compared to the average mutation score of 42.1% for manually written tests. Even though automatically created tests often contain more lines of source code than those written by developers, this paper´s empirical results reveal that test generation tools can provide value by creating high quality test suites while reducing the cost and effort needed for testing.
Keywords :
program testing; software maintenance; software metrics; software quality; source code (software); automated test generation tools; automatically generated test suites; average mutation score; code coverage; cost reduction; empirical software quality evaluation; fault-finding capability; manually written test suites; real-world programs; software development; software test creation; software test execution; software test maintenance; test suite complexity; test suite quality; Complexity theory; Java; Manuals; Software; Standards; Testing; Writing;
Conference_Titel :
Quality Software (QSIC), 2014 14th International Conference on
Conference_Location :
Dallas, TX
Print_ISBN :
978-1-4799-7197-8
DOI :
10.1109/QSIC.2014.33