A Test-Driven Approach to Developing Pointcut Descriptors in AspectJ

被引:13
|
作者
Delamare, Romain [1 ]
Baudry, Benoit [1 ]
Ghosh, Sudipto [2 ]
Le Traon, Yves [3 ]
机构
[1] IRISA INRIA Rennes, Rennes, France
[2] Colorado State Univ, Colorado Springs, CO USA
[3] T Telecom Bretagn, Plouzane, France
关键词
Aspect-oriented programming; joinpoints; pointcut descriptors; mutation analysis; test-driven development; testing tool;
D O I
10.1109/ICST.2009.41
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Aspect-oriented programming (AOP) languages introduce new constructs that can lead to new types of faults, which must be targeted by testing techniques. In particular AOP languages such as AspectJ use a point-cut descriptor (PCD) that provides a convenient way to declaratively specify a set of joinpoints in the protogram where the aspect should be woven. However a major difficulty when testing that the PCD matches the intended set of joinpoints is the lack of precise specification for this set other than the PCD itself. In this paper we propose a test-driven approach for the development and validation of the PCD. We developed a tool, AdviceTracer which enriches the JUnit API with new types of assertions that can be used to specify the expected joinpoints. In order to validate our approach, we also developed a mutation tool that systematically injects faults into PCDs. Using these two tools, we perform experiments to validate that our approach can be applied for specifying expected joinpoints and for detecting faults in the PCD.
引用
收藏
页码:376 / +
页数:2
相关论文
共 50 条
  • [21] Regression test selection in test-driven development
    Zohreh Mafi
    Seyed-Hassan Mirian-Hosseinabadi
    Automated Software Engineering, 2024, 31
  • [22] An approach for applying Test-Driven Development (TDD) in the development of randomized algorithms
    Ivo, Andre A. S.
    Guerra, Eduardo M.
    Porto, Sandy M.
    Choma, Joelma
    Quiles, Marcos G.
    PROCEEDINGS OF THE XXXIII BRAZILIAN SYMPOSIUM ON SOFTWARE ENGINEERING, SBES 2019, 2019, : 6 - 6
  • [23] A family of experiments on test-driven development
    Adrian Santos
    Sira Vegas
    Oscar Dieste
    Fernando Uyaguari
    Ayşe Tosun
    Davide Fucci
    Burak Turhan
    Giuseppe Scanniello
    Simone Romano
    Itir Karac
    Marco Kuhrmann
    Vladimir Mandić
    Robert Ramač
    Dietmar Pfahl
    Christian Engblom
    Jarno Kyykka
    Kerli Rungi
    Carolina Palomeque
    Jaroslav Spisak
    Markku Oivo
    Natalia Juristo
    Empirical Software Engineering, 2021, 26
  • [24] Regression test selection in test-driven development
    Mafi, Zohreh
    Mirian-Hosseinabadi, Seyed-Hassan
    AUTOMATED SOFTWARE ENGINEERING, 2024, 31 (01)
  • [25] Towards Traceable Test-Driven Development
    Hayes, Jane Huffman
    Dekhtyar, Alex
    Janzen, David S.
    2009 ICSE WORKSHOP ON TRACEABILITY IN EMERGING FORMS OF SOFTWARE ENGINEERING (TEFSE), 2009, : 26 - +
  • [26] Towards Test-Driven Semantics Specification
    Soltenborn, Christian
    Engels, Gregor
    MODEL DRIVEN ENGINEERING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2009, 5795 : 378 - 392
  • [27] Test-Driven Development: a systematic review
    Benato, Gustavo Baculi
    Souza Vilela, Plinio Roberto
    REVISTA BRASILEIRA DE COMPUTACAO APLICADA, 2021, 13 (01): : 75 - 87
  • [28] EffTE: A Dependency-aware Approach for Test-Driven Ontology Development
    Halilaj, Lavdim
    Grangel-Gonzalez, Irlan
    Lohmann, Steffen
    Vidal, Maria-Esther
    Auer, Soeren
    33RD ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING, 2018, : 1976 - 1983
  • [29] Extreme Product Line Engineering - Refactoring for Variability: A Test-Driven Approach
    Ghanam, Yaser
    Maurer, Frank
    AGILE PROCESSES IN SOFTWARE ENGINEERING AND EXTREME PROGRAMMING, 2010, 48 : 43 - 57
  • [30] Test-Driven Modeling of Embedded Systems
    Munck, Allan
    Madsen, Jan
    2015 NORDIC CIRCUITS AND SYSTEMS CONFERENCE (NORCAS) - NORCHIP & INTERNATIONAL SYMPOSIUM ON SYSTEM-ON-CHIP (SOC), 2015,