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

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

Open jmfayard opened this issue 3 years ago • 1 comments

Bonjour,

What?

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

Why?

When a test fails, I can currently:

  • Jump to source from the Run view the relevant test if it's a PlainJunitTest
  • do the same from the Kotest view if it's a SomeKotestSpec
  • but I can't Jump to source to a test inside SomeKotestSpec from the normal Run view

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.

jmfayard avatar Aug 10 '22 04:08 jmfayard

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.

stale[bot] avatar Oct 15 '22 21:10 stale[bot]