Android Testing using ATSL (Android Testing Support Library)

Running instrumented unit tests
Instrumented unit tests are important when a functionality can't be tested using mock objects.

Tools used
AndroidJunitRunner is used to run such tests.

Configuring build.gradle
defaultConfig {
applicationId "appId" minSdkVersion 17 targetSdkVersion 23 versionCode 1
versionName "1.1"
testInstrumentationRunner ""}
dependencies {
compile '' compile ''

androidTestCompile 'junit:junit:4.12' androidTestCompile '' androidTestCompile '' androidTestCompile ''
Running Instrument tests:
gradlew connectedAndroidTest

Useful links:

No comments:

Post a Comment

Scheduling Repeating Local Notifications using Alarm Manager

Learn about Scheduling Repeating Local Notifications using Alarm Manager in this post .