We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
PeriodicalsComputer Science & Information Technology

Evolutionary testing of classes

Checking your access to this record.

Abstract & Overview

Object oriented programming promotes reuse of classes in multiple contexts. Thus, a class is designed and implemented with several usage scenarios in mind, some of which possibly open and generic. Correspondingly, the unit testing of classes cannot make too strict assumptions on the actual method invocation sequences, since these vary from application to application.In this paper, a genetic algorithm is exploited to automatically produce test cases for the unit testing of classes in a generic usage scenario. Test cases are described by chromosomes, which include information on which objects to create, which methods to invoke and which values to use as inputs. The proposed algorithm mutates them with the aim of maximizing a given coverage measure. The implementation of the algorithm and its application to classes from the Java standard library are described.

Cite this record

Paolo Tonella (2004). Evolutionary testing of classes. ACM SIGSOFT Software Engineering Notes, 29(4), 119–128. https://doi.org/10.1145/1013886.1007528

Copy in another style

Tonella, P. (2004). Evolutionary testing of classes. ACM SIGSOFT Software Engineering Notes, 29(4), 119–128. https://doi.org/10.1145/1013886.1007528
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.