Skip a submodule during a Maven build

后端 未结 5 1747
暖寄归人
暖寄归人 2020-11-30 17:42

We have a need to be able to skip a submodule in certain environments.

The module in question contains integration tests and takes half an hour to run. So we want t

5条回答
  •  盖世英雄少女心
    2020-11-30 18:08

    there is now (from 1.1.1 version) a 'skip' flag in pit.

    So you can do things like :

        
            pit
            
                
                    
                        org.pitest
                        pitest-maven
                        
                            true
                        
                    
                
            
        
    

    in your module, and pit will skip

    [INFO] --- pitest-maven:1.1.3:mutationCoverage (default-cli) @ module-selenium --- [INFO] Skipping project

提交回复
热议问题