kotest-intellij-plugin icon indicating copy to clipboard operation
kotest-intellij-plugin copied to clipboard

Unable to run test with kotest IntelliJ plugin when test name contains double spaces

Open leannekwok opened this issue 2 years ago • 1 comments

kotest version: 5.5.5 kotest IntelliJ plugin version: 1.3.68-IC-2022.1 IntelliJ version: 2022.1.2

I was unable to run a single test using the kotest IntelliJ plugin's green "play" button next to the test if the test name contains double spaces. The test is simply not getting picked up by IntelliJ.

Example snippet:

import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.shouldBe

class ExampleTest : FunSpec({
  test("Two  spaces") {
    0 shouldBe 0
  }
})

image I noticed that in the "Run" panel the test name is displayed with a single space, could this mismatch be the cause?

leannekwok avatar May 04 '23 07:05 leannekwok