Fixturize: Bridging the Fixture Gap in Test Generation
Chengyi Wang, Pengyu Xue, Zhen Yang, Xiapu Luo, Yuxuan Zhang, Xiran Lyu, Yifei Pei, Zonghan Jia, Yichen Sun, Linhao Wu, and Kunwu Zheng

TL;DR
Fixturize is a framework that enhances automated test generation by accurately identifying and synthesizing necessary test fixtures, significantly improving test suite quality and coverage in programming languages like Python and Java.
Contribution
This paper introduces Fixturize, a novel diagnostic framework and FixtureEval benchmark that together improve fixture dependency detection and test suite effectiveness for LLM-based testing.
Findings
Achieves 88.38%-97.00% accuracy in fixture dependence classification.
Enhances Suite Pass rate by 18.03%-42.86%.
Improves line/branch coverage by up to 119.66%.
Abstract
Current Large Language Models (LLMs) have advanced automated unit test generation but face a critical limitation: they often neglect to construct the necessary test fixtures, which are the environmental setups required for a test to run. To bridge this gap, this paper proposes Fixturize, a diagnostic framework that proactively identifies fixture-dependent functions and synthesizes test fixtures accordingly through an iterative, feedback-driven process, thereby improving the quality of auto-generated test suites of existing approaches. For rigorous evaluation, the authors introduce FixtureEval, a dedicated benchmark comprising 600 curated functions across two Programming Languages (PLs), i.e., Python and Java, with explicit fixture dependency labels, enabling both the corresponding classification and generation tasks. Empirical results demonstrate that Fixturize is highly effective,…
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.
Taxonomy
TopicsSoftware Testing and Debugging Techniques · Model-Driven Software Engineering Techniques · Software System Performance and Reliability
