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

前端 未结 30 2491
盖世英雄少女心
盖世英雄少女心 2020-11-29 22:31

The problem

Whenever I run my projects JUnit test (using JUnit 5 with Java 9 and Eclipse Oxygen 1.a) I encounter the problem that eclipse can\'t find any tests.

30条回答
  •  我在风中等你
    2020-11-29 23:22

    I also faced the same issue you just need to add the library , Junit Library is already provided along with Eclipse so you just need to follow below

    Build Path > Configure Build Path > library > Add library > JUnit > Next > finish

    It works for me

提交回复
热议问题