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

前端 未结 30 2479
盖世英雄少女心
盖世英雄少女心 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:09

    I am using eclipse 2019-09.

    I had to update the junit-bom version to at least 5.4.0. I previously had 5.3.1 and that caused the same symptoms of the OP.

    My config is now:

        
            
                
                    org.junit
                    junit-bom
                    5.5.2
                    pom
                    import
                
            
        
    

提交回复
热议问题