Configuring maven-failsafe-plugin to find integration tests not in src/test/java

后端 未结 2 2272
悲哀的现实
悲哀的现实 2021-02-19 18:44

My directory structure is like so:

  • src/integrationTest/java
  • src/test/java
  • src/main/java

I a

2条回答
  •  独厮守ぢ
    2021-02-19 19:37

    Got working integration tests on Groovy residing in src/test/groovy with this configuration:

    
        org.apache.maven.plugins
        maven-failsafe-plugin
        3.0.0-M5
        
            
                spock-integration-tests
                
                    integration-test
                    verify
                
                
                    true
                    ${project.basedir}/src/test/groovy
                    
                        **/*Specification
                    
                
            
        
    
    

    Note that pattern in doesn't contain file extension (**/*Specification.groovy doesn't work)

提交回复
热议问题