Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Android Application Development with Maven

You're reading from   Android Application Development with Maven Learn how to use and configure Maven to support all phases of the development of an Android application

Arrow left icon
Product type Paperback
Published in Mar 2015
Publisher
ISBN-13 9781783986101
Length 192 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

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 in the <modules> tag. The pom.xml file of the newly created module, RobotiumTests, should contain the required dependencies for Robotium and the application under testing like we saw in the previous sections:

<?xml version="1.0...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image