migrate documents UI tests to use AndroidJUnitRunner
The runner replaces deprecated InstrumentationTestRunner, provides equivalent functionality, and in addition support JUnit4, sharding and per test method timeout. Change-Id: I1c76996d347d3f0f378997f5e7b871279c2b032f
This commit is contained in:
@@ -8,7 +8,7 @@ LOCAL_MODULE_TAGS := tests
|
||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
||||
|
||||
LOCAL_JAVA_LIBRARIES := android-support-v4 android.test.runner
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := mockito-target ub-uiautomator
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := mockito-target ub-uiautomator android-support-test
|
||||
|
||||
LOCAL_PACKAGE_NAME := DocumentsUITests
|
||||
LOCAL_INSTRUMENTATION_FOR := DocumentsUI
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</provider>
|
||||
</application>
|
||||
|
||||
<instrumentation android:name="android.test.InstrumentationTestRunner"
|
||||
<instrumentation android:name="android.support.test.runner.AndroidJUnitRunner"
|
||||
android:targetPackage="com.android.documentsui"
|
||||
android:label="Tests for DocumentsUI" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user