I am probably missing something fundamental here, but here goes...
We are using TestNG and JMockit. JMockit needs some "funky" initialization, giving this error, if not done:
java.lang.IllegalStateException: JMockit wasn't properly initialized; check that jmockit.jar precedes junit.jar in the classpath (if using JUnit; if not, check the documentation)
In ant, its working fine, as I specify the jmockit listener on the testng task, like so:
In IDEA, I can add the listener to the tests in the "edit configurations" / Configuration / Listeners tab.
But I need to remember this for each test.
I see there is a TestNG defaults section, but it does not allow me to add a "default" listener.
I looked at the testng.xml file, and I could set the listener there, but I don't think that helps me with IDEA, if I want to just right click and run one of my tests, I don't think it will be used.
Is there a way to setup a default listener?
Or perhaps a better/alternative way to configure IDEA/TestNG/JMockit.
Thanks in advance for any tips/advice.