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 you followed the examples presented before they are probably checked into the version control system of your choice, so the options here are checking out the project again at this location or creating a symbolic link. Let's choose the latter for the...