How do I include test classes and configuration in my war for integration testing using maven?

前端 未结 7 1533
梦谈多话
梦谈多话 2021-01-12 05:33

I currently have a maven web project that I am attempting to write integration tests for. For the structure of the project, I\'ve defined test stubs under src/test/j

7条回答
  •  梦谈多话
    2021-01-12 05:58

    You can do this Configuration in pom.xml file you don't get any errors in pom.xml and adding test classes to our jar or war file.

        
                    
                        
                            org.eclipse.m2e
                            lifecycle-mapping
                            1.0.0
                            
                                
                                    
                                        
                                            
                                                org.apache.maven.plugins
                                                maven-antrun-plugin
                                                [1.7,)
                                                
                                                    run
                                                
                                            
                                            
                                                
                                            
                                        
                                    
                                
                            
                        
                    
                
    
    
     
            
                maven-antrun-plugin
                1.7
                
                    
                        process-test-classes
                        
                            
                                
                                    
                                
                            
                        
                        
                            run
                        
                    
                
            
        
    

提交回复
热议问题