spek-idea-plugin icon indicating copy to clipboard operation
spek-idea-plugin copied to clipboard

Double-click on test results describe/on/it does not jump to source

Open rrva opened this issue 6 years ago • 6 comments

In the test results window, when I double-click on any of the describe/on/it levels I expect the editor to jump to the source location of the corresponding block. Double-clicking does nothing.

rrva avatar Apr 04 '18 11:04 rrva

@rrva It is expected, there isn't a way to get source code location at runtime.

raniejade avatar Apr 04 '18 11:04 raniejade

Is there anything planned in the spek framework that will make this possible, or any known workarounds?

rrva avatar Apr 04 '18 11:04 rrva

It's really a language limitation, no known workarounds. We could parse the source code, but that's a bit too much. Another option is a compiler plugin, but there isn't any documentation about it (and the API is most likely not stable).

raniejade avatar Apr 04 '18 12:04 raniejade

This is one of the top productivity issues with this plugin for me.

rrva avatar Apr 07 '18 06:04 rrva

The top level (navigate to class) doesn't work for me either. Right-clicking on it shows "Nothing here". Version 0.5.5-studio3.0 with Android Studio 3.1.1.

Android Studio's built-in Android JUnit run configuration type does at least support jumping to the correct object (via right-click or F4).

So it should be possible for the Spek - Android type to support at least that much.

peterholak avatar Apr 18 '18 14:04 peterholak

@raniejade maybe at least implement to go to File/Class anywhere you click will open this File/Class

What do you think ? at least something to navigate to source code

frikit avatar Feb 08 '20 10:02 frikit