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
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.
Bonjour,
What?
If possible, support
Jump to source
forSomeKotestSpec
in theRun
viewWhy?
When a test fails, I can currently:
Jump to source
from theRun
view the relevant test if it's aPlainJunitTest
Kotest
view if it's aSomeKotestSpec
Jump to source
to a test insideSomeKotestSpec
from the normalRun
viewIn 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
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.