O'Reilly logo

Android Application Development with Maven by Patroklos Papapetrou, Jonathan LALOU

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with Robotium

Robotium (https://code.google.com/p/robotium/) is yet another framework that focuses on instrumentation testing, but it's more friendly for UI testing. Like we did in almost every tool we have discussed so far, you need to create a separate Maven module. Here's the corresponding Maven command line to execute inside the root folder of our application:

mvn archetype:generate \
  -DarchetypeArtifactId=android-quickstart \
  -DarchetypeGroupId=de.akquinet.android.archetypes \
  -DarchetypeVersion=1.1.0 \
  -DgroupId=com.packt.androidMaven \
  -DartifactId=RobotiumTests \
  -Dversion=1.0-SNAPSHOT \
  -Dplatform=21 \
  --batch-mode \

When you are done, double-check that the parent Maven configuration file, pom.xml, contains the new module ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required