Efficient mutant generation for mutation testing of pointcuts in aspect-oriented programs

Prasanth Anbalagan, Tao Xie

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

Abstract

Fault-based testing is an approach where the designed test data is used to demonstrate the absence of a set of prespecified faults, typically being frequently occurring faults. Mutation testing is a fault-based testing technique used to inject faults into an existing program, i.e., a variation of the original program and see if the test suite is sensitive enough to detect common faults. Aspect-Oriented Programming (AOP) provides new modularization of software systems by encapsulating crosscutting concerns. AspectJ, a language designed to support AOP uses abstractions like pointcuts, advice, and aspects to achieve AOP's primary functionality. Developers tend to write pointcut expressions with incorrect strength, thereby selecting additional events than intended to or leaving out necessary events. This incorrect strength causes aspects, the set of crosscutting concerns, to fail. Hence there is a need to test the pointcuts for their strength. Mutation testing of pointcuts includes two steps: creating effective mutants (variations) of a pointcut expression and testing these mutants using the designed test data. The number of mutants for a pointcut expression is usually large due to the usage of wildcards. It is tedious to manually identify effective mutants that are of appropriate strength and resemble closely the original pointcut expression. Our framework automatically generates mutants for a pointcut expression and identifies mutants that resemble closely the original expression. Then the developers could use the test data for the woven classes against these mutants to perform mutation testing.

Original languageEnglish (US)
Title of host publication2nd Workshop on Mutation Analysis (Mutation 2006 - ISSRE Workshops 2006), MUTATION'06
DOIs
StatePublished - 2006
Externally publishedYes
Event2nd Workshop on Mutation Analysis (Mutation 2006 - ISSRE Workshops 2006), MUTATION'06 - Raleigh, NC, United States
Duration: Nov 7 2006Nov 10 2006

Publication series

Name2nd Workshop on Mutation Analysis (Mutation 2006 - ISSRE Workshops 2006), MUTATION'06

Other

Other2nd Workshop on Mutation Analysis (Mutation 2006 - ISSRE Workshops 2006), MUTATION'06
Country/TerritoryUnited States
CityRaleigh, NC
Period11/7/0611/10/06

ASJC Scopus subject areas

  • General Computer Science
  • Software

Fingerprint

Dive into the research topics of 'Efficient mutant generation for mutation testing of pointcuts in aspect-oriented programs'. Together they form a unique fingerprint.

Cite this