(Note that the plain old JUnit 4 is used here, not TestNG)
Eclipse seems to be looking for a class hierarchy for @Test annotations if the parent class is in the same project. The following example worked for me:
public class A {
@Test public void a() {
}
}
public class B extends A {
}
When run Bas a JUnit test, it executes a()and passes.
Then I created two Eclipse projects, Test A and Test B. I made a link from project B to project A and repeated the above steps, as you did, with class A in project A, etc. Now starting class B as a unit test says: "There are no JUnit tests." Then adding a @Testto class B solves the problem.
, , Eclipse . , @Test , , .