Rostra: A framework for detecting redundant object-oriented unit tests

Tao Xie, Darko Marinov, David Notkin

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Object-oriented unit tests consist of sequences of method invocations. Behavior of an invocation depends on the state of the receiver object and method arguments at the beginning of the invocation. Existing tools for automatic generation of object-oriented test suites, such as Jtest and JCrasherfor Java, typically ignore this state and thus generate redundant tests that exercise the same method behavior, which increases the testing time without increasing the ability to detect faults. This paper proposes Rostra, a framework for detecting redundant unit tests, and presents five fully automatic techniques within this framework. We use Rostra to assess and minimize test suites generated by test-generation tools. We also present how Rostra can be added to these tools to avoid generation of redundant tests. We have implemented the five Rostra techniques and evaluated them on 11 subjects taken from a variety of sources. The experimental results show that Jtest and JCrasher generate a high percentage of redundant tests and that Rostra can remove these redundant tests without decreasing the quality of test suites.

Original languageEnglish (US)
Title of host publicationProceedings - 19th International Conference on Automated Software Engineering, ASE 2004
Pages196-205
Number of pages10
StatePublished - 2004
Externally publishedYes
EventProceedings - 19th International Conference on Automated Software Engineering, ASE 2004 - Linz, Austria
Duration: Sep 20 2004Sep 24 2004

Publication series

NameProceedings - 19th International Conference on Automated Software Engineering, ASE 2004

Other

OtherProceedings - 19th International Conference on Automated Software Engineering, ASE 2004
Country/TerritoryAustria
CityLinz
Period9/20/049/24/04

ASJC Scopus subject areas

  • General Engineering

Fingerprint

Dive into the research topics of 'Rostra: A framework for detecting redundant object-oriented unit tests'. Together they form a unique fingerprint.

Cite this