kotest / kotest-intellij-plugin

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

`Jump to source` is not available in the `Run` view #211

Closed jmfayard closed 2 years ago

jmfayard commented 2 years ago

Bonjour,

What?

If possible, support Jump to source for SomeKotestSpec in the Run view

Why?

When a test fails, I can currently:

In a project that has a mix of Junit tests and KotestSpecs this is a bit uncovenient to have two different ways to jump to a failing test

How to reproduce?

With this code

class PlainJunitTest {
    @Test
    fun `2+2 shouldBe 5`() {
        2+2 shouldBe 5
    }
}

class SomeKotestSpec : FunSpec({

    test("2+2 shouldBe 5") {
        2 +2 shouldBe 5
    }
}

this works for PlainJunitTest but not SomeKotestSpec

my-kotlin-scipts_–_SomeKotestSpec_kt__my-kotlin-scipts_test__et_New_Issue_Β·_kotest_kotest-intellij-plugin

this works for SomeKotestSpec but not PlainJunitTest

my-kotlin-scipts_–_SomeKotestSpec_kt__my-kotlin-scipts_test__et_DEV_Community_πŸ‘©πŸ’»πŸ‘¨πŸ’»

Caveat

I understand this might not work in all cases, like tests where the name are dynamic, and that's probably why the kotest view is needed. But much of my nice tests use static names and it would be already great if that works in this simple case.

stale[bot] commented 2 years 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.