Skip to main content
QUICK REVIEW

[Paper Review] Human-in-the-Loop Fault Localisation Using Efficient Test Prioritisation of Generated Tests.

Gabin An, Shin Yoo|arXiv (Cornell University)|Apr 14, 2021
Software Testing and Debugging TechniquesComputer Science50 references4 citations
TL;DR

QFiD is a human-in-the-loop fault localisation technique that enhances accuracy with minimal human effort by prioritising generated test cases using a result-aware metric. It achieves 27% and 66% fault localisation accuracy at the top and within the top ten, respectively, after only ten human labellings—13 and 2 times better than using initial test cases alone.

ABSTRACT

Many existing fault localisation techniques become less effective or even inapplicable when not adequately supported by a rich test suite. To overcome this challenge, we present a human-in-the-loop fault localisation technique, QFiD, that works with only a small number of initial failing test cases. We augment the failing test cases with automatically generated test data and elicit oracles from a human developer to label the test cases. A new result-aware test prioritisation metric allows us to significantly reduce the labelling effort by prioritising the test cases to achieve maximum localisation accuracy. An evaluation with EvoSuite and our test prioritisation metric shows that QFiD can significantly increase the localisation accuracy. After only ten human labellings, QFiD can localise 27% and 66% of real-world faults in Defects4J at the top and within the top ten, respectively. This is a 13 and 2 times higher performance than when using the initial test cases. QFiD is also resilient to human errors, retaining 80% of its acc@1 performance on average when we introduce a 30% error rate to the simulated human oracle.

Motivation & Objective

  • Address the limitation of existing fault localisation techniques that require large, rich test suites to be effective.
  • Enable effective fault localisation with only a small number of initial failing test cases.
  • Reduce human labelling effort by intelligently prioritising test cases for oracle elicitation.
  • Improve fault localisation accuracy in real-world systems despite limited test coverage and potential human errors.

Proposed method

  • Augment initial failing test cases with automatically generated test data using EvoSuite.
  • Elicit oracles from developers to label test cases as passing or failing, focusing on prioritised cases.
  • Introduce a result-aware test prioritisation metric that ranks test cases based on their expected contribution to localisation accuracy.
  • Apply the prioritisation metric iteratively to select the most informative test cases for human labelling.
  • Use the labelled test cases to refine fault localisation results through statistical analysis.
  • Simulate human error rates to evaluate robustness and resilience of the approach.

Experimental results

Research questions

  • RQ1Can a human-in-the-loop approach significantly improve fault localisation accuracy with minimal human labelling effort?
  • RQ2How effective is result-aware test prioritisation in reducing the number of required human oracle labels?
  • RQ3To what extent does QFiD maintain performance under realistic human error conditions?
  • RQ4How does QFiD's performance compare to baseline methods using only initial failing test cases?
  • RQ5Can QFiD scale effectively to real-world software faults in industrial systems like Defects4J?

Key findings

  • After only ten human labellings, QFiD localises 27% of real-world faults in Defects4J at the top of the ranking, a 13-fold improvement over using only initial failing test cases.
  • QFiD achieves 66% fault localisation accuracy within the top ten ranked faults after ten labellings, representing a 2-fold improvement over the baseline.
  • The technique remains resilient to human errors, retaining 80% of its acc@1 performance on average when a 30% error rate is simulated in oracle labels.
  • The result-aware test prioritisation metric effectively reduces the number of required human labels by focusing on the most informative test cases.
  • QFiD significantly outperforms baseline methods that rely solely on initial failing test cases, especially in low-test-suites scenarios.
  • The approach demonstrates strong practical viability for real-world software maintenance, where test suites are often limited and human effort is costly.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.