I'm seeing an issue with the plugin where tests st...
# kotest
b
I'm seeing an issue with the plugin where tests still show as in-progress even though they've all finished:
Doesn't look like it happens for every test though, haven't noticed any pattern yet
s
do you have that many nested tests ?
or is that a bug
b
You're right, my tests aren't actually that deeply nested
I don't go deeper than
context -> context -> should
In that test
s
do any of the test names have characters other than az09
b
there is use of apostrophe in some context blocks
s
ok that will be breaking the escaping that intellij uses
b
when jibri isn't busy
in that chain
s
can you ping me the test names or if they're sensitive obsecure them, but I need to see the special characters so I can check kotest is escaping it properly
when jibri isn't busy
is that the only one
b
In that test I think, yeah
In another file (where I've seen the issue) I use a dash:
"before the clients-muted timeout"
I have a test for that use case
hmmm I don't test the name just the message
b
These are both in
context
s
which plugin vers
b
1.0.4
s
kotest version ?
b
4.1.1
s
the test passes with your test name
no other special chars
b
Yeah the tests do pass...it's just that the icon doesn't change to a check
It keeps spinning like it's in progress
s
It's because intellij isn't parsing the output from kotest because of escaping. But I can't figure out why your test name would cause that as the ' is escaped
b
Ah
b
The project is open source if you want to try and repro...I'm on a branch right now but I can double check it happens on master
s
can you link me to the test
b
Yeah...let me double check I see it on master before I send you off on a goose chase
s
👍🏻
Which doesn't have special characters in names, actually.
s
what happens if you turn instance per leaf off
ok I can duplicate it - with instance per leaf on
It looks like a bug in the parallel handling
I'll fix it tonight or tomorrow
b
👍
t
I don’t know how much this could help, but I have the same problem with
BehaviorSpec
. I can reproduce with
Copy code
class AnotherTest : BehaviorSpec() {
  override fun isolationMode(): IsolationMode? = IsolationMode.InstancePerLeaf

  init {
    given("test1") {
      `when`("when1") {
        then("then1") {
          1 shouldBe 1
        }
        then("then1.1") {
          1 shouldBe 1
        }
        then("then1.2") {
          1 shouldBe 1
        }
      }
    }

    given("test2") {
      `when`("when2") {
        then("then2") {
          1 shouldBe 1
        }
      }
    }

    given("test3") {
      `when`("when3") {
        then("then3") {
          1 shouldBe 1
        }
      }
    }

    given("test4") {
      `when`("when4") {
        then("then4") {
          1 shouldBe 1
        }
      }
    }
  }
}
as you already noticed @sam
InstancePerLeaf
seems to be the culprit. I am on kotest 4.1.1 and plugin 1.0.5
s
This is fixed in master, will be releasing 4.1.2 next day or two
👍 2