Surefire doesn't launch test in src/main/java

前端 未结 2 1344
死守一世寂寞
死守一世寂寞 2020-12-15 05:07

I needed to move some src/test/java to src/main/java according to this recommandation from maven-jar-plugin documentation => http://maven.apache.org/plugins/maven-jar-plugin

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-15 05:30

    The good configuration for maven surefire plugin is =>

    
            
                
                    org.apache.maven.plugins
                    maven-surefire-plugin
                    
                        ${basedir}/src/main/java/
                        ${project.build.directory}/classes/
                    
                
            
        
    
    Results :
    
    Tests run: 20, Failures: 0, Errors: 0, Skipped: 0
    

提交回复
热议问题