Hybrid Multi-level Crossover for Unit Test Case Generation
Mitchell Olsthoorn, Pouria Derakhshanfar, Annibale Panichella

TL;DR
This paper introduces a hybrid multi-level crossover operator for unit test case generation that combines structural and data-level recombination, significantly improving coverage and fault detection over traditional methods.
Contribution
The paper proposes a novel hybrid multi-level crossover operator that enhances genetic diversity by evolving both test case structure and input data, outperforming standard single-point crossover.
Findings
HMX increases structural coverage by up to 19%.
HMX improves fault detection by up to 12%.
Statistically significant improvements over traditional crossover.
Abstract
State-of-the-art search-based approaches for test case generation work at test case level, where tests are represented as sequences of statements. These approaches make use of genetic operators (i.e., mutation and crossover) that create test variants by adding, altering, and removing statements from existing tests. While this encoding schema has been shown to be very effective for many-objective test case generation, the standard crossover operator (single-point) only alters the structure of the test cases but not the input data. In this paper, we argue that changing both the test case structure and the input data is necessary to increase the genetic variation and improve the search process. Hence, we propose a hybrid multi-level crossover (HMX) operator that combines the traditional test-level crossover with data-level recombination. The former evolves and alters the test case…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
