I'm getting complaints about 2 `should` blocks hav...
# kotest
b
I'm getting complaints about 2
should
blocks having the same text for: "duplicated test name" (even though they are within different parent scopes. i.e.:
Copy code
"one" {
    "a" {
        should("c") {}
    }
    "b" {
        should("c") {}
    }
}
This complains about duplicate test names
Is this something that changed recently in the plugin? I swear I've done this before
s
which versions of kotest and plugin
b
This is older kotest...kotlintest 3.4.2. Checking plugin version.
plugin 1.0.5
s
the plugin doesn't work with older versions of kotest
well not properly :)
in 4.x the string parent tests are gone, try doing
b
Ok...I've got some projects which are on newer kotest and some still on older. It does look like I can still run them in intellij fine, so I guess it's just some annoying warnings/highlighting
s
Copy code
context("one") {
    context("a") {
        should("c") {}
    }
    context("b") {
        should("c") {}
    }
}
If you try that the highlighting should be fixed
that's the style you have to use in 4.x
b
Yeah, I've used that in 4.x, but I don't think
context
exists in this version.
Not for
ShouldSpec
, at least.
s
hmmm ok
the plugin doesn't understand the raw string parent tests, so it thinks you have two root tests called "c"
b
I see
Alright, I'll just deal with it until upgrading.
s
ok
b
Thanks, Sam
👍🏻 1