Skip to main content



      Home
Home » Language IDEs » AspectJ » Aspects to monitor/intercept test code(Aspects to monitor/intercept test code)
Aspects to monitor/intercept test code [message #1864131] Mon, 18 March 2024 12:43
Eclipse UserFriend
Hi. I am writing Aspects to monitor/intercept test code. I am defining them in the src module but they don't seem to apply unless I define them in the test module instead (where the actual tests are). However, I also want to monitor/intercept test framework code in the src module. (Note that I also tried setting <scope>test</scope> for the aspect dependencies in my pom file.)

I can envision a couple of approaches (aside from my attempt to set scope, above):

1. Define the aspects in the test module and use cflow() for my pointcut definition (which will hopefully cover framework code from src as well)

2. Define an abstract aspect in src and extend it with the proper pointcuts in src and test

Do those ideas make sense? Any other suggestions/ideas? Thanks!
Previous Topic:Joinpoint for TestNG tests?
Next Topic:Sharing aspecs between src and test module?
Goto Forum:
  


Current Time: Mon May 12 18:43:24 EDT 2025

Powered by FUDForum. Page generated in 0.02517 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top