doi: 10.4304/jsw.9.8.2112-2119
Effective Fault Localization Using Weighted Test Cases
- School of Computer Science and Engineering Beihang University Beijing, China
Abstract
Locating faults in a program is prohibitively timeconsuming and tedious, and therefore, many automated fault localization techniques have been proposed to assist in the debugging process. Spectrum based fault localization are promising techniques that can guide developers to the possible locations of faults. These techniques make a summary on the number of passing and failing tests cases to prioritize suspicious statements according to likelihood of containing program bugs for each statement. Though results are encouraging, these techniques treat all test cases as equally important, which ignore individual error diagnosis ability for different test cases. In this paper, we present an approach to exploit varying weights for individual test cases in the computation of suspiciousness scores so as to improve the effectiveness of spectrum based fault localization techniques. To validate our method, experiments were performed on eight typical SFL techniques using two standard benchmarks. Results are suggestive that for the studied SFL techniques, our method can significantly improve the fault localization effectiveness in most situations and in other cases it does not introduce much adverse impact on the techniques original performance.
Keywords
- fault localization
- program spectrum
- de
How to Cite
Yihan Li and Chao Liu, "Effective Fault Localization Using Weighted Test Cases," Journal of Software, vol. 9, no. 8, pp. 2112-2119, 2014. https://doi.org/ 10.4304/jsw.9.8.2112-2119
Copyright & License
Copyright © 2014 by the authors. This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited (CC BY 4.0).
