By the same authors

Efficient unit test case minimization

Research output: Contribution to conferencePaper

Author(s)

  • Andreas Leitner
  • Manuel Oriol
  • Andreas Zeller
  • Ilinca Ciupa
  • Bertrand Meyer

Department/unit(s)

Publication details

DatePublished - 2007
Original languageUndefined/Unknown

Abstract

Randomized unit test cases can be very effective in detecting defects. In practice, however, failing test cases often comprise long sequences of method calls that are tiresome to reproduce and debug. We present a combination of static slicing and delta debugging that automatically minimizes the sequence of failure-inducing method calls. In a case study on the EiffelBase library, the strategy minimizes failing unit test cases on average by 96%.

This approach improves on the state of the art by being far more efficient: in contrast to the approach of Lei and Andrews, who use delta debugging alone, our case study found slicing to be 50 times faster, while providing comparable results. The combination of slicing and delta debugging gives the best results and is 11 times faster.

Discover related content

Find related publications, people, projects, datasets and more using interactive charts.

View graph of relations