kirancodes.me
To Proof Maintenance & Beyond!

Efficient unit test case minimization

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

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%.

BibTeX
@inproceedings{Leitner-al:ASE07,
  author    = {Andreas Leitner and
               Manuel Oriol and
               Andreas Zeller and
               Ilinca Ciupa and
               Bertrand Meyer},
  title     = {Efficient unit test case minimization},
  booktitle = {ASE},
  pages     = {417--420},
  publisher = {{ACM}},
  year      = {2007},
}

Related papers