By operating at a very detailed level, unit tests are very susceptible to changes in production code. Writing unit tests in aspect-oriented programming can help with their maintainability. However, the existing approaches do not take into account so-called pointcut fragility: a failure to address the intended join points due to small changes in the base code. An approach to increasing unit test resilience to changes in production code by decreasing pointcut fragility is proposed in this paper. The approach is implemented in AspectJ with JUnit used as a test oracle. The approach has been evaluated on several scenarios encompassing typical code modification that render unusable the tests written in a simple object-oriented way. The approach proposed in this paper managed to make the test resilient to the most of the changes introduced by these scenarios.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.
customersupport@researchsolutions.com
10624 S. Eastern Ave., Ste. A-614
Henderson, NV 89052, USA
Copyright © 2024 scite LLC. All rights reserved.
Made with 💙 for researchers
Part of the Research Solutions Family.