https://kotlinlang.org logo
Title
t

thana

04/18/2022, 3:50 PM
Is there a way to twek the kotest plugin so i can navigate to the failing assertion by double clicking it in the results view (as i am used to do from plain junit tests)?
s

sam

04/18/2022, 3:51 PM
If you use the plugin it should work if you run via the intellij runner instead of gradle
Gradle is just broken so it won't support nested tests.
t

thana

04/18/2022, 3:53 PM
ah thanks. thats a little better. although it only navigates to the
describe
method call, not to the actual line of the failing assertion. I guess thats a kotlin thing? it was pretty much the same with assertk...
j

Jim

04/18/2022, 3:54 PM
Hmmm I have to line navigation 🤔
s

sam

04/18/2022, 3:56 PM
The stack trace should include the actual line
Is the stack trace not clickable
t

thana

04/18/2022, 3:58 PM
strange. the acutal line appears somewhere in the trace and i can click it
s

sam

04/18/2022, 3:58 PM
There you go, the kotest lines should mostly be folded away
t

thana

04/18/2022, 3:59 PM
@sam what do you mean by that?
s

sam

04/18/2022, 3:59 PM
The stack trace shouldn't include a lot of io.kotest lines so it should be cleaner. Intellij should collapse them.
t

thana

04/18/2022, 4:00 PM
yeah it doesnt. most lines at the top of the stack trace are from mockk 😄
but again, this wont be a kotest issue then. thanks 🙂
👍🏻 1