Running integration tests with surefire in integration-test phase

The Maven Failsafe Plugin is a fork of the Maven Surefire Plugin designed to help when running integration tests. However, sometimes you may want to use Surefire for integration testing. The situation may be even more complicated if have unit tests and integration tests in the same module. The solution isn’t very pretty but it’s still quite short and understandable…

The Maven Failsafe Plugin is a fork of the Maven Surefire Plugin designed to help when running integration tests. However, sometimes you may want to use Surefire for integration testing. The situation may be even more complicated if have unit tests and integration tests in the same module. The solution isn’t very pretty but it’s still quite short and understandable:


    org.apache.maven.plugins
    maven-surefire-plugin
    
        true
    
    
        
        
            surefire
            test
            
                test
            
            
                false
                
                    pl/touk/cc/dao/mybatis/integration/**
                
            
        
        
        
            surefire-it
            integration-test
            
                test
            
            
                false
                
                    pl/touk/cc/dao/mybatis/integration/**
                
            
        
    
You May Also Like

Multi phased processing in scala

Last time in our project we had to add progress bar for visualization of long time running process. Process was made of a few phases and we had to print in which phase we currently are. In first step we conclude that we need to create a class of Progre...