| | |
Summary: Tool Support for Randomized Unit Testing
James H. Andrews, Susmita Haldar, Yong Lei and Felix Chun Hang Li
Department of Computer Science
University of Western Ontario
London, Ontario, CANADA N6A 2T2
{andrews,haldar,leiyong,cli9}(at)csd.uwo.ca
ABSTRACT
There are several problem areas that must be addressed when ap
plying randomization to unit testing. As yet no general, fully au
tomated solution that works for all units has been proposed. We
therefore have developed RUTEJ, a Java package intended to help
programmers do randomized unit testing in Java. In this paper, we
describe RUTEJ and illustrate how it supports the development
of perunit solutions for the problems of randomized unit testing.
We report on an experiment in which we applied RUTEJ to the
standard Java TreeMap class, measuring the efficiency and effec
tiveness of the technique. We also illustrate the use of randomized
testing in experimentation, by adapting RUTEJ so that it gener
ates randomized minimal covering test suites, and measuring the
effectiveness of the test suites generated.
|