Detecting redundant unit tests for AspectJ programs

Tao Xie, Jianjun Zhao, Darko Marinov, David Notkin

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

19 Citations (Scopus)

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 tests that do 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.

Original languageEnglish
Title of host publicationProceedings - 17th International Symposium on Software Reliability Engineering, ISSRE 2006
Pages179-188
Number of pages10
DOIs
Publication statusPublished - 2006
Externally publishedYes
Event17th International Symposium on Software Reliability Engineering, ISSRE 2006 - Raleigh, NC, United States
Duration: Nov 7 2006Nov 10 2006

Publication series

NameProceedings - International Symposium on Software Reliability Engineering, ISSRE
ISSN (Print)1071-9458

Other

Other17th International Symposium on Software Reliability Engineering, ISSRE 2006
Country/TerritoryUnited States
CityRaleigh, NC
Period11/7/0611/10/06

All Science Journal Classification (ASJC) codes

  • Engineering(all)

Fingerprint

Dive into the research topics of 'Detecting redundant unit tests for AspectJ programs'. Together they form a unique fingerprint.

Cite this