Hi, after updating my Kotlin and Kotest versions in IntelliJ I’m getting the below warning where I’m using
.config
to tag my tests, for example:
Copy code
"my test".config(tags = setOf(TestTag)) {
// Test stuff here
}
warning on .config -
This declaration is experimental due to signature types and its usage must be marked (will become an error in 1.6) with '@kotlin.time.ExperimentalTime' or '@OptIn(kotlin.time.ExperimentalTime::class)'
TestTag would be defined like this -
object TestTag : Tag()
Is there something else I should be doing to tag my tests instead of using
.config
?
s
sam
10/08/2021, 4:34 PM
It's because .config has duration in it
sam
10/08/2021, 4:34 PM
Intellij recently updated and now experimental types propagate further
sam
10/08/2021, 4:34 PM
you can ignore it
sam
10/08/2021, 4:34 PM
It will go away once 1.6 is released
p
phil-t
10/08/2021, 5:43 PM
So where it says “will become an error in 1.6” I thought that meant this code won’t work with 1.6, or will the warning go away and it’ll still work?