Junit experts - how do you handle junit properties...
# test
e
Junit experts - how do you handle junit properties file in multimodule? As for now our project has hundreds of these files with same content. I was thinking to do symlinks with obvious limitations. But I'm reading that I need just one of it on the class path. Means, I probably can use our test library module with one file in it.
c
I haven't tested it, but yeah you should be able to create a micro-library module with the file in your resources and
testImplementation()
depend on it in all your real modules
e
Yeah, doing it and adding as testRuntimeOnly
Lucky we have convention plugins to apply it quickly to all modules
d
exactly, we are doing same, defining a micro-library - works perfectly for us 😄