DocumentCode
2803109
Title
Detecting Redundant Unit Tests for AspectJ Programs
Author
Xie, Tao ; Zhao, Jianjun ; Marinov, Darko ; Notkin, David
Author_Institution
Dept. of Comput. Sci., North Carolina State Univ., Raleigh, NC
fYear
2006
fDate
7-10 Nov. 2006
Firstpage
179
Lastpage
190
Abstract
Aspect-oriented software development is gaining popularity with the adoption of languages such as AspectJ. Testing is an important part in any software development, including aspect-oriented development. To automate generation of unit tests for AspectJ programs, we can apply the existing tools that automate generation of unit tests for Java programs. However, these tools can generate a large number of test inputs, and manually inspecting the behavior of the software on all these inputs is time consuming. We propose Raspect, a framework for detecting redundant unit tests for AspectJ programs. We introduce three levels of units in AspectJ programs: advised methods, advice, and intertype methods. We show how to detect at each level redundant test that does not exercise new behavior. Our approach selects only non-redundant tests from the automatically generated test suites, thus allowing the developer to spend less time in inspecting this reduced set of tests. We have implemented Raspect and applied it on 12 subjects taken from a variety of sources; our experience shows that Raspect can effectively reduce the size of generated test suites for inspecting AspectJ programs
Keywords
Java; object-oriented programming; program testing; AspectJ language; AspectJ programs; Java programs; Raspect; aspect-oriented software development; redundant unit test detection; software testing; unit test generation; Automatic testing; Computer languages; Computer science; Costs; Java; Programming; Software design; Software systems; Software testing; Software tools;
fLanguage
English
Publisher
ieee
Conference_Titel
Software Reliability Engineering, 2006. ISSRE '06. 17th International Symposium on
Conference_Location
Raleigh, NC
ISSN
1071-9458
Print_ISBN
0-7695-2684-5
Type
conf
DOI
10.1109/ISSRE.2006.21
Filename
4021983
Link To Document