How do I run JUnit tests on Eclipse?

  • Thread starter zeion
  • Start date
  • Tags Tags
    Eclipse
1 reply · 4K views · last reply
zeion
Messages
455
Reaction score
1
Hi,

I'm having trouble getting JUnit tests to run with eclipse. I've looked for solutions but nothing seems to work. Whenever I try to run the file as a JUnit test, it says No JUnit tests found.

I tried including the JAR file in the project classpaths (both JUnit 4 and 3), tried both extending TestCase and not, tried restarting eclipse, tried creating new JUnit test cases, tried to run the file from the menu and from the navigator.

What else should I check for / try?
I can also screenshot my project and give more info, please help me.
Thanks.
 
Needed to change folder containing test class as source.