I have a JUnit test class in my project, which is being updated gradually - I add tests every few weeks and sometimes change the test code.
Surprisingly, when I run the test class using eclipse JUnit Runner 4, it runs my old code (before the upgrade), and not the new one. I can change the code, add or remove tests, but it still runs the old code.
I tried to isolate the problem and run the only test I just wrote, and got the notorious "Unrooted tests" error without any stack trace to let me know what the problem was.

I did some research and in accordance with several other topics here, many people have encountered this problem regarding JUnit 3 \ JUnit 4 compatibility, but this is not the case here - I am commenting all my tests using @Test , and I am NOT extending the TestCase class .
Cleaning / building all eclipse projects does not help. However, this problem really works when I mvn clean install my project, but it takes too much time. In addition, renaming the class (Alt + Shift + R in eclipse) causes the new code to run immediately, but renaming it back to the original (and real) name causes the old code to re-run (WTF?)
Help will be appreciated, 10x
source share