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

前端 未结 7 1389
梦谈多话
梦谈多话 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:57

    Use Tomcat 7 plugin with additional classpath directories configuration.

                
                    org.apache.tomcat.maven
                    tomcat7-maven-plugin
                    2.2
                    
                        
                            ${build.testOutputDirectory}
                        
                    
                    
                        
                            start-tomcat
                            
                                run
                            
                            
                                true
                            
                        
                    
                
    

提交回复
热议问题