Diversity-Driven Unit Test Generation (Data Set)
Description
The goal of automated unit test generation tools is to create a set of test cases for the software under test that achieve the highest possible coverage for the selected test quality criteria. The most effective approaches for achieving this goal at the present time use meta-heuristic optimization algorithms to search for new test cases using fitness functions defined on existing sets of test
cases and the system under test. Regardless of how their search algorithms are controlled, however, all existing approaches focus on the analysis of exactly one implementation, the software under test, to drive their search processes, which is a limitation on the information they have available. In this paper we investigate whether the practical effectiveness of white box unit test generation tools can be increased by giving them access to multiple, diverse implementations of the functionality under test harvested from widely available Open Source software repositories. After presenting a basic implementation of such an approach, DivGen (Diversity-driven Generation), on top of the leading test generation tool for Java (EvoSuite), we assess the performance of DivGen compared to EvoSuite when applied in its traditional, mono-implementation oriented mode (MonoGen). The results show that while DivGen outperforms MonoGen in 33% of the sampled classes for mutation coverage (+16% higher on average), MonoGen outperforms
DivGen in 12.4% of the classes for branch coverage (+10% higher average).
Files
branch_coverage.csv
Files
(23.5 GB)
| Name | Size | |
|---|---|---|
|
md5:029d2fd0d86ddc3b6ebfe88a50c76205
|
5.1 kB | Preview Download |
|
md5:f06647f03ede8e0bb8dd0e6d2a8bc33a
|
3.1 MB | Preview Download |
|
md5:5c09547762d55f569c2ccdac55bfd126
|
455.5 kB | Preview Download |
|
md5:5e614b5c072bef068ba2e4495ed88105
|
8.9 kB | Preview Download |
|
md5:bce6cc93e16a5c10204f47d53350d6e3
|
397.1 kB | Preview Download |
|
md5:629a1f3c065d70e03cec9597965e40f2
|
22.4 GB | Preview Download |
|
md5:710b237be168ef7ebc1d20d87f6003e1
|
1.1 GB | Preview Download |
Additional details
Related works
- Is cited by
- Journal article: 10.1016/j.jss.2022.111442 (DOI)