Eclipse No tests found using JUnit 5 caused by NoClassDefFoundError for LauncherFactory

I fixed the issue by right clicking the test and selecting ‘Run Configurations’ and changing the “Test runner:” selection to ‘JUnit 4’ as shown here:

Screenshot of run configruations

I ran the test again and it worked.

Leave a Comment