0

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?

Matthias
  • 3,458
  • 4
  • 27
  • 46
user492888
  • 207
  • 3
  • 17

2 Answers2

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