-
Notifications
You must be signed in to change notification settings - Fork 179
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
Couldn't run test clicking in the greens arrows alongside of the class #574
Comments
By any chance do you have the class in the default package? |
Also, can you share a reproducer? The kotlin plugin version you are using may help as well. |
No, I don't have this class in the default package (I created another package specifically for test). And regarding the reproducer (if I understood correctly), you have to write a regular Spek test. The Kotlin plugin version is: v1.3.11-release-IJ2018.3-1 |
I solved the issue, somehow the package line was removed and I didn't notice it, |
But, Spek should be able to run specification in the default package, right? |
@jcornaz It should - I definitely fixed this before, going to look at it again. |
Tried replicating but with no luck. EDIT: I was wrong the issue is with tests in the default package but it only happens if you are using JDK 1.8. Java 9 and above |
i get this issue with all my tests being in packages though.. i had some files that were just empty / commented out but even deleting those did not fix it, |
@NikkyAI can you double check your tests? Maybe missing the package line? The only time I can consistently replicate this via the IDE and gradle is when I'm using Java 8 and have a test in the default package. |
@NikkyAI once the dev builds are out can you try it out and see if it fixes your issue? |
This morning I found an update from Spek (to v2.0.0-rc.1.180+b8533a4-IJ2018.3), and after did it I couldn't run any test individually (clicking in the green arrows alongside the class). The only way that I have found to run the test is running all the test classes that I have in the folder at the same time (right-click on the folder -->Run Test in whatever).
I'm working with Windows and IntelliJ IDEA 2018.3.3 (Ultimate Edition, Build #IU-183.5153.38)
This bug was easy to reproduce as well.
Please, find the images below for more details:
This is the trace:
The text was updated successfully, but these errors were encountered: