Spring boot -Spock setup

Spring boot 项目中添加Spock

Eclipse 需要安装groovy plugin
IDEA 自带groovy plugin

maven

Add dependency

 
            
                org.spockframework
                spock-spring
                1.1-groovy-2.4
                test
            

            
                org.codehaus.groovy
                groovy-all
                2.4.4
                test
            

            


Plugin


                org.apache.maven.plugins
                maven-surefire-plugin
                2.18.1
                
                    
                        **/*Test.java
                        **/*Spec.java
                    
                
            

            
                org.codehaus.gmavenplus
                gmavenplus-plugin
                1.5
                
                    
                        
                            addTestSources
                            testCompile
                        
                    
                
            


你可能感兴趣的:(Spring boot -Spock setup)