CTForge: Automatically Generating Test Suites for Software Configuration
Open Access
- 7 October 2026
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 2383-2395
Abstract
Software configuration plays a critical role in modern software systems, yet it also frequently leads to severe failures. Existing approaches, whether static analysis or LLM-based validation, struggle to capture implicit semantic constraints and validate configuration-code interactions. Leveraging existing unit tests is also insufficient due to their lack of configuration-specific focus. Thus, we present CTForge, an LLM-powered framework that automatically generates configuration-specific test suites. Its core innovation is a three-stage configuration-aware optimization pipeline that moves beyond vanilla test generation, specifically using parameter semantics to improve LLM outputs. This optimization pipeline iteratively aligns tests through: (1)enhance configuration-related code coverage to ensure relevance, (2) assertion validation across valid parameter values to eliminate false assertions, and (3) configuration-sensitivity verification to select tests that semantically exercise the intended configuration behavior. Evaluated on five large-scale systems, CTForge detects 63 out of 79 real-world configuration issues and achieves an F1-score of 0.88 in misconfiguration detection. CTForge also uncovers six previously unknown defects. Our work demonstrates that structured configuration-aware refinement is essential for LLM to produce effective test suites.Keywords
Funding Information
- National Natural Science Foundation of China (62532008)
- National Natural Science Foundation of China (U2441238)
- National Natural Science Foundation of China (62502528)
- National Natural Science Foundation of China (62272473)
This publication has 68 references indexed in Scilit:
- Who is in Charge here? Understanding How Runtime Configuration Affects Software Along with Variables&Constants2024
- Software product line testing: a systematic literature reviewEmpirical Software Engineering, 2024
- Enchanting Program Specification Synthesis by Large Language Models Using Static Analysis and Program Verification2024
- Effective test generation using pre-trained Large Language Models and mutation testingInformation and Software Technology, 2024
- ConfTainter: Static Taint Analysis For Configuration Options2023
- Learning Patterns in Configuration2021
- An Evolutionary Study of Configuration Design and Implementation in Cloud Systems2021
- Distance-Based Sampling of Software Configuration Spaces2019
- How effective are mutation testing tools? An empirical analysis of Java mutation testing tools with manual analysis and real faultsEmpirical Software Engineering, 2017
- Challenges in Validating FLOSS Configuration2017