JUnit unable to find tests in Eclipse
Posted
by mikera
on Stack Overflow
See other posts from Stack Overflow
or by mikera
Published on 2010-06-08T14:59:55Z
Indexed on
2010/06/08
15:02 UTC
Read the original article
Hit count: 190
I have a strange issue with JUnit 4 tests in Eclipse 3.5 that I couldn't solve - any hints gratefully received!
Initially: I had a test suite working properly, with 100+ tests all configured with JUnit 4 annotations. I'd run these typically by right clicking on my source folder and selecting "Run as JUnit test". All worked perfectly.
Now: When I try to run the test messages all I get is an error "No tests found with test runner 'JUnit 4'".
Any idea what is happening? I simply can't work out what could have changed to make this fail.
My guess is that it is some configuration issue based on the build path or class path?
© Stack Overflow or respective owner