-
Notifications
You must be signed in to change notification settings - Fork 36
dockerComposeTest doesn't pick up test resources #36
Comments
Hi @dpfeiffer, the class path for test dependencies is defined in the plugin as an overridable
Here is the default implementation:
Is there an additional sbt setting/path that you can append to the default list allow your test resources to be located from your Play application tests? Depending on what the solution is it's possible that the default set of paths I'm building needs to be updated to account for your scenario. |
@dpfeiffer Maybe something like the following:
|
@kurtkopchik Thank you for your fast reply, it works as expected when I set the testDependenciesClasspath manually (like you suggested). I should have read the docs more carefully. I think that adding the testResources as a default would suite most scenarios as I assume it's a default behaviour (having access to test resources) for running test. |
Thanks @dpfeiffer! I'm glad that worked for you. I've published a release that now includes the test resources in the classpath by default when executing
|
I have a play application and resources in the test/resources folder which is the default test-resources folder for a play application. If I run a test which accesses test resources from
dockerComposeTest
the test resources are not on the classpath although they are if I run the same test witchtest
.The text was updated successfully, but these errors were encountered: