https://kotlinlang.org logo
#random
Title
# random
t

tipsy

12/20/2019, 8:28 AM
i'm trying to make a multi-module maven project, and i'm having some trouble getting intellij to use the correct working dir for junit - anyone know how to fix this?
the answers i've found on youtrack and stack overflow haven't helped
e

eekboom

12/20/2019, 9:38 AM
This answer probably doesn’t help you either 😞 Why do you junit tests need to rely on the current working directory? Usually you are better of using either resources from the classpath or temporary directories/files crated on the fly. Anyway: You can set the working directory in an IDEA run configuration.
t

tipsy

12/20/2019, 9:39 AM
You can set the working directory in an IDEA run configuration.
i tried that, but it doesn't work 🤔
i need to test that the server is able to resolve static files, both external and on the classpath - neither work in the child module at the moment
Turned out I could fix it by changing the build setup in the pom, not sure how exactly that solved it, but it did
4 Views