Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Best way to exclude AspectJ codes for unit tests.

Hi there,

I want to exclude aspectj codes from being executed when I unit test. What is the best way to do that? 

Manipulating my pointcut such that it does not execute when the caller has “@Test” annotation?
Using maven goals and exclusion tags? (If so how exactly?)
One note about the possible maven solution: I guess that maven solution will only help if "mvn test”  command is run and cannot help when running the unit test directly (Right clicking on the test file-> Run As JUnit Test) 

Thanks for the help in advance.


Back to the top