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

Running typical unit tests

From this chapter until the end of this book, we will use a sample project to demonstrate the topics we will cover. For this one, we will reuse the basic structure of the three-module (model, service, and AndroidTier) Maven project we introduced in Chapter 2, Starting the Development Phase, with some naming modifications, and we will build on top of this. The complete source code can be found on the following GitHub link https://github.com/ppapapetrou76/AndroidMavenDevelopment/tree/master/Chapter3.

Note

Assume that you have a git client installed in your machine, you can clone the project locally by running the following command:

git clone https://github.com/ppapapetrou76/AndroidMavenDevelopment.

Running our first unit test with Maven is easy. By default, Maven uses the maven-surefire-plugin command to execute unit tests for all files found under the /src/test/java/ directory; so, we don't need to add any dependency to our pom.xml file. We need, however, to...

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