Title :
Increasing Test Granularity by Aggregating Unit Tests
Author :
Jorde, Matthew ; Elbaum, Sebastian ; Dwyer, Matthew B.
Author_Institution :
Univ. of Nebraska - Lincoln, Lincoln, NE
Abstract :
Unit tests are focused, efficient, and there are many techniques to support their automatic generation. Coarser granularity tests, however, are necessary to validate the behavior of larger software components, and are also likely to be more robust in the presence of program changes. This paper investigates whether coarser granularity tests can be automatically generated by aggregating unit tests. We leverage our Differential Unit Test (DUT) framework to represent unit tests, define a space of potential aggregations of those unit tests, and implement a strategy to traverse that space to generate Aggregated DUTs (A- DUTs) that validate the effects of multiple method calls on a (set of) receiver object(s). An empirical study of A-DUTs on two applications shows their tradeoffs with DUTs and their potential to increase the number of versions for which tests remain usable relative to method level tests.
Keywords :
object-oriented programming; program testing; aggregated differential unit test; automatic generation; differential unit test framework; granularity tests; software components; test granularity; Assembly systems; Automatic testing; Fault detection; Robustness; Software testing; System testing;
Conference_Titel :
Automated Software Engineering, 2008. ASE 2008. 23rd IEEE/ACM International Conference on
Conference_Location :
L´Aquila
Print_ISBN :
978-1-4244-2187-9
Electronic_ISBN :
1938-4300
DOI :
10.1109/ASE.2008.11