Tool support for randomized unit testing

  • Authors:
  • James H. Andrews;Susmita Haldar;Yong Lei;Felix Chun Hang Li

  • Affiliations:
  • University of Western Ontario, London, Ontario, Canada;University of Western Ontario, London, Ontario, Canada;University of Western Ontario, London, Ontario, Canada;University of Western Ontario, London, Ontario, Canada

  • Venue:
  • Proceedings of the 1st international workshop on Random testing
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

There are several problem areas that must be addressed when applying randomization to unit testing. As yet no general, fully automated solution that works for all units has been proposed. We therefore have developed RUTE-J, a Java package intended to help programmers do randomized unit testing in Java. In this paper, we describe RUTE-J and illustrate how it supports the development of per-unit solutions for the problems of randomized unit testing. We report on an experiment in which we applied RUTE-J to the standard Java TreeMap class, measuring the efficiency and effectiveness of the technique. We also illustrate the use of randomized testing in experimentation, by adapting RUTE-J so that it generates randomized minimal covering test suites, and measuring the effectiveness of the test suites generated.