March 2015
Beginner to intermediate
274 pages
6h 1m
English
Instrumentation is instantiated by the system before any of the application code is run, thereby allowing monitoring of all the interactions between the system and the application.
As with many other Android application components, instrumentation implementations are described in the AndroidManifest.xml under the tag <instrumentation>. However, with the advent of Gradle, this has now been automated for us, and we can change the properties of the instrumentation in the app's build.gradle file. The AndroidManifest file for your tests will be automatically generated:
defaultConfig {
testApplicationId 'com.blundell.tut.tests'
testInstrumentationRunner "android.test.InstrumentationTestRunner"
}The values mentioned in the preceding code ...
Read now
Unlock full access