Learning How to Search: Generating Effective Test Cases Through Adaptive Fitness Function Selection
Not on the map. Why?
Abstract (arXiv)
Search-based test generation is guided by feedback from one or more fitness functions - scoring functions that judge solution optimality. Choosing informative fitness functions is crucial to meeting the goals of a tester. Unfortunately, many goals - such as forcing the class-under-test to throw exceptions, increasing test suite diversity, and attaining Strong Mutation Coverage - do not have effective fitness function formulations. We propose that meeting such goals requires treating fitness function identification as a secondary optimization step. An adaptive algorithm that can vary the selection of fitness functions could adjust its selection throughout the generation process to maximize goal attainment, based on the current population of test suites. To test this hypothesis, we have implemented two reinforcement learning algorithms in the EvoSuite unit test generation framework, and used these algorithms to dynamically set the fitness functions used during generation for the three goals identified above. We have evaluated our framework, EvoSuiteFIT, on a set of Java case examples. EvoSuiteFIT techniques attain significant improvements for two of the three goals, and show limited improvements on the third when the number of generations of evolution is fixed. Additionally, for two of the three goals, EvoSuiteFIT detects faults missed by the other techniques. The ability to adjust fitness functions allows strategic choices that efficiently produce more effective test suites, and examining these choices offers insight into how to attain our testing goals. We find that adaptive fitness function selection is a powerful technique to apply when an effective fitness function does not already exist for achieving a testing goal.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 6 of its 83 references that are in the map. First posted on arXiv 9 Feb 2021.
Builds on
6 of 83 references.
References · 6
- 2015Test Set Diameter: Quantifying the Diversity of Sets of Test Casescited by 10
- 2020An Evaluation of Monte Carlo-Based Hyper-Heuristic for Interaction Testing of Industrial Embedded Software Applicationscited by 3
- 2017Supplementary Material for the Information Sciences Paper: An Experimental Study of Hyper-Heuristic Selection and Acceptance Mechanism for Combinatorial t-way Test Suite Generationcited by 2
- 2018Visualizing test diversity to support test optimisationcited by 2
- 2019Transfer Learning for Performance Modeling of Deep Neural Network Systemscited by 2
- 2019Does Diversity Improve the Test Suite Generation for Mobile Applications?cited by 1
Built on by
Citing papers per year: 2021: 1; 2022: 1; 2023: 0; 2024: 0; 2025: 2.
4 papers.
- 2025EvoGPT: Leveraging LLM-Driven Seed Diversity to Improve Search-Based Test Suite Generationcited by 2
- 2022The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Studycited by 1
- 2021Automated Support for Unit Test Generation: A Tutorial Book Chaptercited by 0
- 2025Search-Based Software Engineering and AI Foundation Models: Current Landscape and Future Roadmapcited by 0
- 2025Search-Based Software Engineering and AI Foundation Models: Current Landscape and Future Roadmap26 May 2025
- 2025EvoGPT: Leveraging LLM-Driven Seed Diversity to Improve Search-Based Test Suite Generation18 May 2025
- 2022The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Study21 Jun 2022
- 2021Automated Support for Unit Test Generation: A Tutorial Book Chapter26 Oct 2021