I am trying to execute the JUNIT test for my project and it takes nearly 30 mins to complete the test. How to run only single test class/method in JUNIT test?
Asked
Active
Viewed 371 times
2 Answers
3
Right click and run as on the single method or put @Ignored annotation on the methods you want to avoid

Pumpkin
- 1,993
- 3
- 26
- 32
-
I am using Eclipse. Is it available in it. – user492888 Nov 10 '14 at 13:06
-
1Yes =) , run as -> junit test – Pumpkin Nov 10 '14 at 13:07
0
If you want only one class and if you use Eclipse, then right click on the .java file -> Run-As -> JUnit Test.

Michal Krasny
- 5,434
- 7
- 36
- 64