We have emma configured in our project that generates a coverage report. The whole setup worked fine until I entered PowerMock to mock some static methods.
When I annotate a class with @RunWith (PowerMockRunner.class), emma tries to start the coverage process again and throws an addressbind exception. I think maven surefire is deploying a new JVM for different runners, and emma is trying to start a new JVM again.
I tried with various options for makefire forkMode, but that doesn't help. Running util.HttpClientFactoryTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.154 sec Running xxx.util.ServiceConnectorUtilTest EMMA: collecting runtime coverage data ... java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
The idea of how to get around this? Any help greatly comprehended. Thanks
source share