https://kotlinlang.org logo
Title
s

sdeleuze

03/01/2018, 11:31 AM
This (Groovy version) does not seem to work:
test {
	useJUnitPlatform()
}
b

bamboo

03/01/2018, 11:36 AM
The Kotlin DSL equivalent would be:
tasks {
  “test”(Test::class) {
    useJUnitPlatform()
  }
}
👍 3
s

sdeleuze

03/01/2018, 11:42 AM
Ok thanks, should I create an issue for more first class support ?
withType<Test> {
		useJUnitPlatform()
	}
seems to work also
1
But
useJUnitPlatform
is red in IDEA (works fine on command line)
b

bamboo

03/01/2018, 11:45 AM
Creating an issue won’t be necessary, thanks.
The
withType<Test>
solution will enable the JUnit platform for all test tasks so it’s a little different than the original Groovy version
s

sdeleuze

03/01/2018, 11:46 AM
Ok
m

mkobit

03/01/2018, 3:40 PM
i think i ran into an issue with intellij not using the wrapper version i updated to on the CLI for the module i had to do the dread Invalidate and Restart to get the IDE support working again