Is there an easy way to run a single junit test?
# announcements
r
Is there an easy way to run a single junit test?
g
Idea provides such feature Gradle also can be used for that:
Copy code
gradle test --tests *MyClassTest.myTestMethod
r
That does work, the gradle one
I just renamed the test files I didn;t want to test
Thanks
Does not work*
g
Sorry, didn’t get. Does it work for you or not? 🙈
r
No, does not work
g
Why? What is symptom? gradle run all the tests instead only one?
r
yes
g
What is your gradle version?
Also try to add
'
for test filter, maybe problem with * in your terminal :
Copy code
gradle test --tests '*MyClassTest.myTestMethod'
Just checked, works perfectly for me
r
Well yeah, I'm sure it works for other people in their projects 😛
Thanks