Maven fail-safe not executing tests

前端 未结 10 1616
孤城傲影
孤城傲影 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:05

    For me it was a missing executions section

                
                    
                        
                            integration-test
                            verify
                        
                    
                
    

    The failsafe with TestNG documentation at https://maven.apache.org/surefire/maven-failsafe-plugin/examples/testng.html had shown a pom without it, and it didn't work.

    
        [...]
          
            org.apache.maven.plugins
            maven-failsafe-plugin
            3.0.0-M3
            
              
                testng.xml
              
            
          
        [...]
    
    

    Adding the missing executions section shown above solved the problem.

提交回复
热议问题