grails - Run only integration tests on a Maven exec -
grails - Run only integration tests on a Maven exec -
i want run integration tests using grails-maven-plugin. setup profile run exec command such:
<profile> <id>run-tests</id> <build> <plugins> <plugin> <groupid>org.grails</groupid> <artifactid>grails-maven-plugin</artifactid> <version>${grails.version}</version> <executions> <execution> <id>grails-integration-tests</id> <phase>integration-test</phase> <goals> <goal>exec</goal> </goals> <configuration> <command>test-app</command> <env>integration</env> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile>
the problem run integration tests grails command looks like: grails test-app integration:
colon @ end of integration, when
<args>integration:</args>
this throws:
basiclazyinitializer: javassist enhancement failed: <my classes in integration tests> groovy.lang.missingpropertyexception: no such property: hasproperty class: groovy.lang.metaclassimpl
so need figure out how pass argument integration:
maven exec, think maven doesn't colon.
maven grails grails-maven
Comments
Post a Comment