kotest / kotest-intellij-plugin

The official Kotest plugin for Intellij and Android Studio
Apache License 2.0
180 stars 25 forks source link

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

Open leannekwok opened 1 year ago

leannekwok commented 1 year ago

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?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.