Open rrva opened 6 years ago
@rrva It is expected, there isn't a way to get source code location at runtime.
Is there anything planned in the spek framework that will make this possible, or any known workarounds?
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).
This is one of the top productivity issues with this plugin for me.
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.
@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
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.