raniejade / spek-idea-plugin

MIT License
48 stars 15 forks source link

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

Open rrva opened 6 years ago

rrva commented 6 years ago

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.

raniejade commented 6 years ago

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

rrva commented 6 years ago

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

raniejade commented 6 years ago

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).

rrva commented 6 years ago

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

peterholak commented 6 years ago

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.

frikit commented 4 years ago

@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