Is there a way to separate long running (e.g. stress tests) out so they're not run by default in Maven 2?

后端 未结 4 1468
难免孤独
难免孤独 2021-02-02 03:12

We\'ve had an ongoing need here that I can\'t figure out how to address using the stock Maven 2 tools and documentation.

Some of our developers have some very long runni

4条回答
  •  心在旅途
    2021-02-02 03:34

    Normally you would add a profile to your maven configuration that runs a different set of tests:

    run this with mvn -Pintegrationtest install

        
            integrationtest
            
                
                    
                        org.apache.maven.plugins
                        maven-surefire-plugin
                        
                            -client -Xmx896m -XX:MaxPermSize=192m
                            once
                            
                                **/**/*Test.java
                                **/**/*IntTest.java
                            
                            
                                **/**/*SeleniumTest.java
                            
                        
                    
                
            
            
                
                    integrationtest
                
            
        
    

提交回复
热议问题