No tests found with test runner 'JUnit 4'

1

When you create a new package and create a new test in this package, try to run the test eclipse returns the message: "No tests found with test runner 'JUnit 4'" Within the project I have another package with other tests that run normally.

Does anyone know what to do?

    
asked by anonymous 30.08.2016 / 14:50

1 answer

1

See if there is at least one annotated method with @Test in your class test.

Example:

@Test
public void testFoo() {...}
    
30.08.2016 / 22:13