Incremental modular testing for AOP

André Restivo, Ademar Aguiar, Ana Moreira

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

1 Citation (Scopus)

Abstract

By designing systems as sets of modules that can be composed into larger applications, developers unleash a multitude of advantages. The promise of AOP (Aspect-Oriented Programming) is to enable developers to organize crosscutting concerns into separate units of modularity making it easier to accomplish this vision. However, AOP does not allow unit tests to be untangled, which impairs the development of properly tested independent modules. This paper presents a technique that enables developers to encapsulate crosscutting concerns using AOP and still be able to develop reusable unit tests. Our approach uses incremental testing and invasive aspects to modify and adapt tests. The approach was evaluated in a medium scale project with promising results. Without using the proposed technique, due to the presence of invasive aspects, some unit tests would have to be discarded or modified to accommodate the changes made by them. This would have a profound impact on the overall modularity and, in particular, on the reusability of those modules. We will show that this technique enables proper unit tests that can be reused even when coupled with aspect-oriented code.

Original languageEnglish
Title of host publicationICSOFT 2016 - Proceedings of the 11th International Joint Conference on Software Technologies
EditorsL. Maciaszek , J. Cardoso, E. Cabello , M. van Sinderen , L. Maciaszek , A. Ludwig , J. Cardoso
Place of PublicationSetúbal, Portugal
PublisherSciTePress
Pages50-59
Number of pages10
Volume2
ISBN (Electronic)978-989758194-6
DOIs
Publication statusPublished - 2016
Event11th International Conference on Software Paradigm Trends, ICSOFT-PT 2016 - Part of the 11th International Joint Conference on Software Technologies, ICSOFT 2016 - Lisbon, Portugal
Duration: 24 Jul 201626 Jul 2016

Conference

Conference11th International Conference on Software Paradigm Trends, ICSOFT-PT 2016 - Part of the 11th International Joint Conference on Software Technologies, ICSOFT 2016
CountryPortugal
CityLisbon
Period24/07/1626/07/16

Keywords

  • Aspects
  • Modularity
  • Testing

Fingerprint Dive into the research topics of 'Incremental modular testing for AOP'. Together they form a unique fingerprint.

  • Cite this

    Restivo, A., Aguiar, A., & Moreira, A. (2016). Incremental modular testing for AOP. In L. Maciaszek , J. Cardoso, E. Cabello , M. van Sinderen , L. Maciaszek , A. Ludwig , & J. Cardoso (Eds.), ICSOFT 2016 - Proceedings of the 11th International Joint Conference on Software Technologies (Vol. 2, pp. 50-59). Setúbal, Portugal: SciTePress. https://doi.org/10.5220/0005986600500059