Using coverage criteria on RepOK to reduce bounded-exhaustive test suites

  • Authors:
  • Valeria Bengolea;Nazareno Aguirre;Darko Marinov;Marcelo F. Frias

  • Affiliations:
  • Department of Computer Science, FCEFQyN, Universidad Nacional de Río Cuarto, Argentina,Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET), Argentina;Department of Computer Science, FCEFQyN, Universidad Nacional de Río Cuarto, Argentina,Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET), Argentina;Department of Computer Science, University of Illinois at Urbana-Champaign;Department of Software Engineering, Buenos Aires Institute of Technology, Argentina,Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET), Argentina

  • Venue:
  • TAP'12 Proceedings of the 6th international conference on Tests and Proofs
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

Bounded-exhaustive exploration of test case candidates is a commonly employed approach for test generation in some contexts. Even when small bounds are used for test generation, executing the obtained tests may become prohibitive, despite the time for test generation not being prohibitive. In this paper, we propose a technique for reducing the size of bounded-exhaustive test suites. This technique is based on the application of coverage criteria on the representation invariant of the structure for which the suite was produced. More precisely, the representation invariant (which is often implemented as a repOK routine) is executed to determine how its code is exercised by (valid) test inputs. Different valid test inputs are deemed equivalent if they exercise the repOK code in a similar way according to a white-box testing criterion. These equivalences between test cases are exploited for reducing test suites by removing from the suite those tests that are equivalent to some test already present in the suite. We present case studies that evaluate the effectiveness of our technique. The results show that by reducing the size of bounded-exhaustive test suites up to two orders of magnitude, we obtain test suites whose efficacy measured as their mutant-killing ability is comparable to that of bounded-exhaustive test suites.