Automatic test case generation for multiple coverage criteria: towards more efficient bug localization

Software testing plays a vital role in ensuring the quality and reliability of software systems. The quality of test cases is particularly significant. However, manual test case creation requires substantial resources and may not consistently ensure high quality. Therefore, this paper proposes a test case generation method named MCTG (Multiple Coverage Test Case Generator), which enhances upon the symbolic execution tool KLEE. MCTG searches paths and solves constraint conditions within tested functions to generate test cases that meet various coverage criteria. Using a subset of programs from the Codenet dataset, this study recruited 27 experienced testers to manually write test cases as a baseline. Experimental results show that the test case suite generated by MCTG achieves 3.1% higher coverage than KLEE on average and 11.2% higher than manually written cases. Moreover, MCTG’s EXAM value is 20.6% lower than manual methods and 18.0% lower than KLEE, indicating that MCTG places bug-containing statements closer to the top, requiring inspection of less code to find bugs. This suggests that MCTG’s multi-coverage test case generation technique can improve bug localization effectiveness as proposed in this study.

Authors

Institutions

Publication Details

Published
2025-04-25
DOI
https://doi.org/10.1117/12.3060785
Primary Topic
Software Testing and Debugging Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Automatic test case generation for multiple coverage criteria: towards more efficient bug localization

Chenge Geng, Shunping Ji, Xinyue Xu, Xiangxian Chen et al.
Software Testing and Debugging Techniques
article

Automatic test case generation for multiple coverage criteria: towards more efficient bug localization

Chenge Geng, Shunping Ji, Xinyue Xu, Xiangxian Chen, Zhonghao Guo
article en

Abstract

Software testing plays a vital role in ensuring the quality and reliability of software systems. The quality of test cases is particularly significant. However, manual test case creation requires substantial resources and may not consistently ensure high quality. Therefore, this paper proposes a test case generation method named MCTG (Multiple Coverage Test Case Generator), which enhances upon the symbolic execution tool KLEE. MCTG searches paths and solves constraint conditions within tested functions to generate test cases that meet various coverage criteria. Using a subset of programs from the Codenet dataset, this study recruited 27 experienced testers to manually write test cases as a baseline. Experimental results show that the test case suite generated by MCTG achieves 3.1% higher coverage than KLEE on average and 11.2% higher than manually written cases. Moreover, MCTG’s EXAM value is 20.6% lower than manual methods and 18.0% lower than KLEE, indicating that MCTG places bug-containing statements closer to the top, requiring inspection of less code to find bugs. This suggests that MCTG’s multi-coverage test case generation technique can improve bug localization effectiveness as proposed in this study.

Zhejiang University (CN)
Openalex Percentile: Top 92%
Software Testing and Debugging Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.