https://kotlinlang.org logo
Title
j

james_bassett

05/12/2018, 4:42 AM
Speaking of
useJunitPlatform()
, what am I meant to do if I call
useJunitPlatform()
in a plugin (so every project gets the same Junit setup), but then want to customize the Junit config further (like adding extra tags) in my build.gradle.kts. I've found that when calling
useJunitPlatform()
again in my build script, it clobbers the setup from my plugin (i.e. if I have any tags set, they get blown away by the new ones). I've had to get the options of my test task and cast to
JunitPlatformOptions
and then call the functions (like
includeTags()
) for it to work properly.
e

eskatos

05/12/2018, 10:36 AM
This sounds like a bug, please open an issue on https://github.com/gradle/gradle/issues/new
j

james_bassett

05/12/2018, 11:59 PM
Ok, thanks Paul, I'll do that, I just wanted to make sure that isn't the intended behaviour (it wasn't what I was expecting!)