DocumentCode :
1566608
Title :
Rostra: a framework for detecting redundant object-oriented unit tests
Author :
Xie, Tao ; Notkin, David ; Marinov, Darko
Author_Institution :
Dept. of Comput. Sci. & Eng., Washington Univ., Seattle, WA, USA
fYear :
2004
Firstpage :
196
Lastpage :
205
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 J Crasher for 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 work 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.
Keywords :
Java; application program interfaces; object-oriented programming; program testing; software tools; JCrasher; Jtest; Rostra; method arguments; method behavior; method invocations; object-oriented test suites; receiver object; redundant object-oriented unit test detection; test suite quality; test-generation tools; Artificial intelligence; Automatic testing; Computer science; Fault detection; Java; Laboratories; Object detection; Prototypes; Software testing; Time factors;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Automated Software Engineering, 2004. Proceedings. 19th International Conference on
ISSN :
1938-4300
Print_ISBN :
0-7695-2131-2
Type :
conf
DOI :
10.1109/ASE.2004.1342737
Filename :
1342737
Link To Document :
بازگشت