Hi,
in the Apache PLC4X build we recently noticed that surefire and failsafe 2.22.2
were missing to pickup some of our tests, which we use with @TestFactory
annotation.
It turns out that when switching to 3.0.0-M5 this problem is resolved.
However, a new problem is now causing problems.
In our tests we usually load test-jars which contain test-resources which are
processed in our tests.
They are referenced by the module in this way:
<dependency>
<groupId>org.apache.plc4x</groupId>
<artifactId>plc4x-protocols-modbus</artifactId>
<version>0.10.0-SNAPSHOT</version>
<classifier>tests</classifier>
<type>test-jar</type>
<scope>test</scope>
</dependency>
In failsafe the test is unable to load the resources. If I run the identical
test in surefire, it works. If I run it in failsafe 2.22.2, it works.
In the IDE the tests also work fine.
So, I did some debugging and could see that the classloader used to load the
resources correctly contains the jar that contains the resources in its
URLClassPath, however the Classloader doesn't seem to use this.
Anyone got an idea what's going on?
Thanks,
Chris