Prioritizing test cases with string distances

  • Authors:
  • Yves Ledru;Alexandre Petrenko;Sergiy Boroday;Nadine Mandran

  • Affiliations:
  • Laboratoire d'Informatique de Grenoble (LIG), UMR 5217, UJF-Grenoble 1, Grenoble-INP, UPMF-Grenoble 2, CNRS, Grenoble, France 38041;Centre de Recherche Informatique de Montréal, Montréal, Canada H3N 1M3;Centre de Recherche Informatique de Montréal, Montréal, Canada H3N 1M3;Laboratoire d'Informatique de Grenoble (LIG), UMR 5217, UJF-Grenoble 1, Grenoble-INP, UPMF-Grenoble 2, CNRS, Grenoble, France 38041

  • Venue:
  • Automated Software Engineering
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

Test case prioritisation aims at finding an ordering which enhances a certain property of an ordered test suite. Traditional techniques rely on the availability of code or a specification of the program under test. We propose to use string distances on the text of test cases for their comparison and elaborate a prioritisation algorithm. Such a prioritisation does not require code or a specification and can be useful for initial testing and in cases when code is difficult to instrument. In this paper, we also report on experiments performed on the "Siemens Test Suite", where the proposed prioritisation technique was compared with random permutations and four classical string distance metrics were evaluated. The obtained results, confirmed by a statistical analysis, indicate that prioritisation based on string distances is more efficient in finding defects than random ordering of the test suite: the test suites prioritized using string distances are more efficient in detecting the strongest mutants, and, on average, have a better APFD than randomly ordered test suites. The results suggest that string distances can be used for prioritisation purposes, and Manhattan distance could be the best choice.