Groovy Spock test form Java Maven project

Posted on by Kim

Setup in maven


    
        junit
        junit
        4.12
        test
    
    
        org.spockframework
        spock-core
        1.0-groovy-2.4
        test
    
    
        org.codehaus.groovy
        groovy-all
        2.4.4
        test
    
    
        com.athaydes
        spock-reports
        1.2.7
        test
    



    org.apache.maven.plugins
    maven-compiler-plugin
    
        UTF-8
        1.8
        ${jdk.target.version}
    


    org.codehaus.gmavenplus
    gmavenplus-plugin
    1.5
    
        
            
                addTestSources
                testCompile
            
        
    


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

See : Writing Unit Tests With Spock Framework: Creating a Maven Project Thanks to Petri Kainulainen

0 Responses to "Groovy Spock test form Java Maven project":