How to run all tests in a particular package with Maven?

后端 未结 9 1642
别跟我提以往
别跟我提以往 2021-01-30 02:18

I can find in the Maven docs where it shows how to run:

  1. A single test
  2. All tests in a single test class
  3. All tests in classes matching a particular
9条回答
  •  Happy的楠姐
    2021-01-30 02:45

    The pom.xml version of O Badr's answer:

        
            
                
                    org.apache.maven.plugins
                    maven-surefire-plugin
                    2.20.1
                    
                        
                     
                            **/package1/*   
                     
                            **/package2/**
                        
                    
                
    
            
        
    

提交回复
热议问题