[Paper Review] IBIR: Bug Report driven Fault Injection
iBiR is a fault injection tool that generates realistic, targeted software faults by reverse-engineering code repair templates from user-reported bug reports, enabling precise injection of faults that mimic real-world defects. It achieves 36% fault coupling with real bugs—over 50× higher than traditional mutation testing—while maintaining high semantic similarity to original faults.
Much research on software engineering and software testing relies on experimental studies based on fault injection. Fault injection, however, is not often relevant to emulate real-world software faults since it "blindly" injects large numbers of faults. It remains indeed challenging to inject few but realistic faults that target a particular functionality in a program. In this work, we introduce IBIR, a fault injection tool that addresses this challenge by exploring change patterns associated to user-reported faults. To inject realistic faults, we create mutants by retargeting a bug report driven automated program repair system, i.e., reversing its code transformation templates. IBIR is further appealing in practice since it requires deep knowledge of neither of the code nor the tests, but just of the program's relevant bug reports. Thus, our approach focuses the fault injection on the feature targeted by the bug report. We assess IBIR by considering the Defects4J dataset. Experimental results show that our approach outperforms the fault injection performed by traditional mutation testing in terms of semantic similarity with the original bug, when applied at either system or class levels of granularity, and provides better, statistically significant, estimations of test effectiveness (fault detection). Additionally, when injecting 100 faults, IBIR injects faults that couple with the real ones in 36% of the cases, while mutants from mutation testing inject less than 1%. Overall, IBIR targets real functionality and injects realistic and diverse faults.
Motivation & Objective
- To address the lack of realism in traditional fault injection techniques that blindly inject syntactic mutations across codebases.
- To improve fault representativeness by focusing on actual user-reported bugs and their repair patterns.
- To reduce the cost and increase the relevance of fault injection by targeting specific functionalities described in bug reports.
- To provide a practical, low-overhead method for fault injection that requires no deep knowledge of the system’s code or test suite.
Proposed method
- iBiR uses information retrieval (IR)-based fault localization to identify code locations mentioned in a given bug report.
- It reverse-engineers repair templates from a repair system (e.g., Nopol) to generate realistic fault patterns that mirror actual fixes.
- Faults are injected by reapplying these repair transformations in reverse, creating mutants that emulate real faults.
- The tool prioritizes fault patterns based on their frequency and position in real bug fixes, ensuring diversity and realism.
- It operates at system or class level granularity, injecting 100 faults per target bug report to ensure statistical reliability.
- The approach requires only access to bug reports, not source code or test suites, enabling broad applicability.
Experimental results
Research questions
- RQ1Can fault injection based on bug reports produce mutants with higher semantic similarity to real faults than traditional mutation testing?
- RQ2To what extent do iBiR-injected faults couple with real faults (i.e., are detected by the same test cases)?
- RQ3Does iBiR provide more accurate estimations of test effectiveness (fault detection) compared to traditional mutation testing?
- RQ4Can iBiR generate diverse, realistic faults without requiring deep knowledge of the system’s code or test suite?
Key findings
- iBiR achieved a median semantic similarity of 0.58 with real faults, significantly higher than the 0.0 achieved by traditional mutation testing.
- iBiR injected faults coupled with real faults in 36% of cases, compared to less than 1% for traditional mutation testing.
- The fault coupling rate of iBiR is approximately 50 times higher than that of mutation testing, indicating stronger alignment with real fault behavior.
- iBiR provides statistically significant improvements in estimating test effectiveness, as measured by fault detection rates.
- The method enables realistic fault injection with minimal system knowledge, relying only on bug reports.
- iBiR’s approach supports controlled experiments and can serve as a valid substitute for real faults in empirical software engineering studies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.