Is there a way to run one individual test in a cla...
# test
l
Is there a way to run one individual test in a class of lots of tests with IntelliJ? Trying to run one unit test with the run button from sidebar, I think we used to be able to do this...
1
m
Use the run icon beside a test method. That should do it.
a
If your project uses Spek as well, you might have lost that functionality even for JUnit tests
l
The run icon beside the test method still runs only the test method in Java, yes. But in Kotlin the run icon beside the test method runs all of the test methods in the class. I believe this is new because I used to be able to run one Kotlin test method by clicking the run icon next to it... I'm using JUnit5 but I've been using that for awhile now. Wondering if I am doing something wrong?
Okay I was tipped off by another dev that if I right click inside the method, that I can run just that method! Sorry for the clutter. I just found this interesting
i
I’ve been experiencing this too. I quickly searched for a related YouTrack bug, but didn’t see one. I haven’t had a chance to file one yet.
👍 1
l
Someone filed it for Android Studio, not sure if it's made it to InelliJ: https://issuetracker.google.com/issues/140787210