META-INF/services being ignored on JUnit test run

Hello everyone,

I have a test that statically defines some service implementations on the META-INF/services files but when I try running it from inside IDEA, it goes to the dynamically selected implementation and fails. But when I run all the tests from my console through maven it works flawlessly.
I have checked and the META-INF/services folder and files exists on the target/test-classes output dir.

Is there anything that I need to change to configure my test run correctly?

Thank you

1 comment

Hello.

Running the test from IDEA, do you use Maven or an IDEA run configuration (Run/Debug Configurations dialog)? If second, please check that working directory field is filled correctly.

Regards,
Alexander.

0

Please sign in to leave a comment.