You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got exports my.package to junit; in my module-info and most of my tests can now run while building but some tests rely on test data that I place in src/test/resources. when doing a build these tests fail as the resources are not found. I've tried various ways to get the resources such as:
Yes, the test resources aren't being picked up by the modular setup. I tried modifying the test source set output directory for resources and it seems to be working:
sourceSets {
test {
output.resourcesDir = "build/classes/java/test"
}
}
I've got
exports my.package to junit;
in my module-info and most of my tests can now run while building but some tests rely on test data that I place insrc/test/resources
. when doing a build these tests fail as the resources are not found. I've tried various ways to get the resources such as:The text was updated successfully, but these errors were encountered: