Spring integration tests with profile

前端 未结 5 1829
温柔的废话
温柔的废话 2020-12-07 21:40

In our Spring web applications, we use the Spring bean profiles to differentiate three scenarios: development, integration, and production. We use them to connect to differe

5条回答
  •  悲&欢浪女
    2020-12-07 22:03

    As @ElderMael mentioned you could use the argLine property of maven surefire plugin. Often when I need to run all the test with different specific Spring profiles I define additional maven profile. Example:

    
        
            foo
            
                
         
     
    热议问题