How to execute JUnit and TestNG tests in same project using maven-surefire-plugin?

前端 未结 12 2006
花落未央
花落未央 2020-12-13 06:04

Right now I have both type of tests but when I say \"mvn test\" it only executes TestNG tests and not Junit. I want to execute both one after another. Any Idea ?

12条回答
  •  遥遥无期
    2020-12-13 06:47

    Thanks to this link (http://jira.codehaus.org/browse/SUREFIRE-377), here is a solution to my previous problem (having 3 executions instead of 2)

    
        org.apache.maven.plugins
        maven-surefire-plugin
        2.10
        
           none:none
        
        
           
              test
              
                 test
              
              
                 none:none
                 org.testng:testng
              
           
        
    
    

提交回复
热议问题