How do I run JUnit tests on Eclipse?

  • Thread starter Thread starter zeion
  • Start date Start date
  • Tags Tags
    Eclipse
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 4K views
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.
 
Physics news on Phys.org
Needed to change folder containing test class as source.