O'Reilly logo

Android Application Testing Guide by Diego Torres Milano

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

TemperatureConverter code coverage

We built Android from source to be able to obtain code coverage analysis reports for our projects mainly for two reasons:

  • We need an EMMA instrumented build, which is what we did in previous sections
  • To be able to instrument an application, this application should be built as part of the main build tree, and this is what we will be doing now;

A possible location for our application and tests inside the main Android tree could be development/samples, so we are going to use it. Should you decide on a different location, minor adaption might be needed in the files and commands presented here.

We already have our TemperatureConverter project and its tests TemperatureConverterTests somewhere in our filesystem, and if ...

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