Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rrva opened this issue Apr 4, 2018 · 6 comments
Open

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

rrva opened this issue Apr 4, 2018 · 6 comments

Comments

@rrva
Copy link

rrva commented Apr 4, 2018

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
Copy link
Owner

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

@rrva
Copy link
Author

rrva commented Apr 4, 2018

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

@raniejade
Copy link
Owner

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
Copy link
Author

rrva commented Apr 7, 2018

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

@peterholak
Copy link

peterholak commented Apr 18, 2018

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
Copy link

frikit commented Feb 8, 2020

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants