4.5 Article

Efilter: An effective fault localization based on information entropy with unlabelled test cases

Journal

INFORMATION AND SOFTWARE TECHNOLOGY
Volume 134, Issue -, Pages -

Publisher

ELSEVIER
DOI: 10.1016/j.infsof.2021.106543

Keywords

Fault localization; Software debugging; Test oracle; Unlabelled test cases; Information entropy

Funding

  1. Science and Technology on Reliability and Environmental Engineering Laboratory, China [614200404031117, 61400020404]

Ask authors/readers for more resources

This study aims to construct a framework to filter unlabelled test cases using entropy-based methods for better fault localization efficiency. Results show that the framework significantly improves fault localization efficiency, serving as a solution for practical scenarios lacking test oracles.
Context: Automatic fault localization is essential to intelligent software system. Most fault localization techniques assume the test oracle is perfect before debugging, which is hard to exist in practice. In fact, the test suite would contain a number of unlabelled test cases which have been proved to be useful in fault localization. However, due to the execution diversity, not all unlabelled test cases are suitable for fault localization. Selecting inappropriate unlabelled test cases can even weaken the fault localization efficiency. Objective: To solve the problem of filtering unlabelled test cases, this work aims to construct a feasible framework to select suitable unlabelled test cases for better fault localization. Method: To address this issue, an entropy-based framework Efilter is constructed to filter unlabelled test cases. In Efilter, a Statement-based entropy and Testsuite-based entropy are constructed to measure the localization uncertainty of given test suite. The unlabelled test case with less Statement-based entropy or Testsuite-based entropy compared with its threshold would be selected. Further, the feature integration strategies for both Statement-based entropy and Testsuite-based entropy are given to calculate the suspiciousness of statements. Results: The Efilter efficiency is evaluated across 6 open-source programs and 3 spectrum-based fault localizations. The results reveal that Efilter can improve fault localization efficiency by 18.8% and 16.5% with the Statement-based entropy and the Testsuite-based entropy respectively compared with the strategy without Efilter from the perspective of EXAM score on average. Conclusion: Our results indicate that the Efilter with both the Statement-based entropy and the Testsuite-based entropy can improve the fault localization in the scenario lack of test oracles, serving as an enhancement for fault localization in practice.

Authors

I am an author on this paper
Click your name to claim this paper and add it to your profile.

Reviews

Primary Rating

4.5
Not enough ratings

Secondary Ratings

Novelty
-
Significance
-
Scientific rigor
-
Rate this paper

Recommended

No Data Available
No Data Available