run calabash-android tests during Maven build -
first off, suspect isn't going easy, because there isn't entry calabash-android in maven central repository , calabash-android project doesn't provide one.
that being said, know how manage calabash-android tests during maven build? there plugins this? can't find any, in off chance google-fu has failed me or there's workaround... i'd love hear it.
[edit] i'm using maven-android plugin apk build.
i assuming familiar android maven plugin? if not, should check out. here method not bulletproof, should work:
1- start writing shell script launches calabash tests. shell script, calabash.sh, wouldn't complicated, along lines of:
calabash-android run ../target/<app>.apk /path/to/calabash/tests 2- launch script once maven has finished integration-test phase (if using android maven, that's when run unit tests). taken this question:
<plugin> <artifactid>exec-maven-plugin</artifactid> <groupid>org.codehaus.mojo</groupid> <executions> <execution> <id>version calculation</id> <phase>validate</phase> //this occurs [after integration-test][3] <goals> <goal>exec</goal> </goals> <configuration> <executable>${basedir}/scripts/calabash.sh</executable> </configuration> </execution> </executions> </plugin> this not bulletproof solution because suspect maven cannot report calabash test failures. also, might need add bash magic make script run until completion before maven finishes building.
Comments
Post a Comment