Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsAspects to monitor/intercept test code
https://www.eclipse.org/forums/index.php/mv/msg/1114579/1864131/#msg_1864131
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!]]>Digital Trunck2024-03-18T16:43:21-00:00Re: Sharing aspecs between src and test module?
https://www.eclipse.org/forums/index.php/mv/msg/1110383/1862898/#msg_1862898
Kevin Kraft wrote on Wed, 23 March 2022 17:35
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 rice purity test
Do those ideas make sense? Any other suggestions/ideas? Thanks!
It sounds like you're dealing with some challenges in defining and applying aspects in the src and test modules. It's like trying to navigate through a complex maze of dependencies and module interactions. Your proposed approaches seem reasonable, and it's always good to consider different strategies when facing such issues. Finding the right balance and approach is crucial, and I hope you find a solution that works effectively for your testing needs.]]>Kenna Anna2024-01-05T06:51:39-00:00Re: Is it possible to weave 2 different classes ?
https://www.eclipse.org/forums/index.php/mv/msg/1107968/1861730/#msg_1861730
To weave two different classes, you would use an AOP weaver. An AOP weaver is a tool that can generate new code echat that intercepts and modifies the execution of your existing code.https://echat.date]]>Tolana Audery2023-10-31T10:23:26-00:00Re: Sharing aspecs between src and test module?
https://www.eclipse.org/forums/index.php/mv/msg/1110383/1861469/#msg_1861469
Kevin Kraft2023-10-13T19:48:35-00:00Re: Joinpoint for TestNG tests?
https://www.eclipse.org/forums/index.php/mv/msg/1110334/1861464/#msg_1861464
Jack Jones2023-10-13T19:18:20-00:00Re: Sharing aspecs between src and test module?
https://www.eclipse.org/forums/index.php/mv/msg/1110383/1861462/#msg_1861462
Jack Jones2023-10-13T19:15:18-00:00Re: memory consumption
https://www.eclipse.org/forums/index.php/mv/msg/1081001/1861254/#msg_1861254
Jack Jones2023-10-02T19:51:56-00:00Re: AspectJ logs not printing issue with Open JDK 17
https://www.eclipse.org/forums/index.php/mv/msg/1113287/1860367/#msg_1860367
Connor Evans2023-08-01T11:32:11-00:00AspectJ logs not printing issue with Open JDK 17
https://www.eclipse.org/forums/index.php/mv/msg/1113287/1859914/#msg_1859914
De Silva2023-07-05T09:08:15-00:00Re: New version of Eclipse
https://www.eclipse.org/forums/index.php/mv/msg/1112043/1859579/#msg_1859579
Kabiru Usman2023-06-16T12:29:33-00:00