Starting external process during integration testing in maven

前端 未结 5 732
礼貌的吻别
礼貌的吻别 2021-01-01 05:24

I want completely automated integration testing for a Maven project. The integration tests require that an external (platform-dependent) program is started before running.

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-01 05:47

    You could use the antrun plugin. Inside you would use ant's exec apply task.

    Something like this.

    
        org.apache.maven.plugins
        maven-antrun-plugin
        1.2
        
          
              
            
    
              
                
                  
                  
                  
                
                
                  
                  
                  
                
              
    
            
            
              run
            
          
        
      
    

    Ant support os specific commands of course through the condition task.

提交回复
热议问题