Maven fail-safe not executing tests

前端 未结 10 1651
孤城傲影
孤城傲影 2020-12-28 12:23

I\'ve combed StackOverflow and many other sites, have found many other related posts and have followed all said suggestions, but in the end, failsafe is skipping my

10条回答
  •  长情又很酷
    2020-12-28 13:04

    I also had a similar problem but needed the packaging element to be "pom". Make sure your test source files are being compiled and added to the .../target/test-classes folder using the maven-compiler-plugin:

           
                org.apache.maven.plugins
                maven-compiler-plugin
                ${maven.compiler.version}
                
                    
                        test-compile
                        
                            testCompile
                        
                    
                
            
    

提交回复
热议问题