Increasing Unit Test Resilience by Decreasing Pointcut Fragility




Abstract:
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 writ- ten 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.

CITATION:

IEEE format

M. Hucko, V. Vranić, “Increasing Unit Test Resilience by Decreasing Pointcut Fragility,” in Sinteza 2019 - International Scientific Conference on Information Technology and Data Related Research, Belgrade, Singidunum University, Serbia, 2019, pp. 369-373. doi:10.15308/Sinteza-2019-369-373

APA format

Hucko, M., Vranić, V. (2019). Increasing Unit Test Resilience by Decreasing Pointcut Fragility. Paper presented at Sinteza 2019 - International Scientific Conference on Information Technology and Data Related Research. doi:10.15308/Sinteza-2019-369-373

BibTeX format
Download

RefWorks Tagged format
Download