Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How do I run JUnit tests on Eclipse?

  1. Mar 12, 2012 #1

    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.
  2. jcsd
  3. Mar 13, 2012 #2
    Needed to change folder containing test class as source.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook