kotest-intellij-plugin
kotest-intellij-plugin copied to clipboard
`Jump to source` is not available in the `Run` view
Bonjour,
What?
If possible, support Jump to source for SomeKotestSpec in the Run view
Why?
When a test fails, I can currently:
Jump to sourcefrom theRunview the relevant test if it's aPlainJunitTest- do the same from the
Kotestview if it's aSomeKotestSpec - but I can't
Jump to sourceto a test insideSomeKotestSpecfrom the normalRunview
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
this works for SomeKotestSpec but not PlainJunitTest
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.
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.