Aspects to monitor/intercept test code [message #1864131] |
Mon, 18 March 2024 12:43 |
Eclipse User |
|
|
|
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!
|
|
|
Powered by
FUDForum. Page generated in 0.02517 seconds