O'Reilly logo

Maven Build Customization by Giacomo Veneri, Riccardo Giomi, Umberto Antonio Cicero, Roberto Baldi, Lorenzo Anardu

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

Useful instrumentations to test, sign, and zipalign

In this section, we will talk about some useful tools for our code.

The test profile

In this section, we will create a profile to install the application automatically and run instrumentation tests at every build.

For convenience, we will refer to our profile as testProfile and perform the following steps:

  1. Create a new directory for the test classes; follow the folder structure shown as follows:
    The test profile
  2. Then, specify the source test directory in the POM file:
    […]
    <build>
      <sourceDirectory>src</sourceDirectory>
      <testSourceDirectory>test</testSourceDirectory>
    </build>
    […]
  3. Create a property to enable/disable the ...

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