Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2027ca0e authored by Brett Chabot's avatar Brett Chabot
Browse files

Migrate packages/apps/DocumentsUI to androidx.test

See go/jetpack-test-android-migration

Test: make checkbuild
Change-Id: Iee68768060f3811678eb51318fb429b629ff03b1
parent 978bdfb3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ android_test {

    static_libs: [
        "androidx.legacy_legacy-support-v4",
        "espresso-core",
        "androidx.test.espresso.core",
        "mockito-target",
        "ub-janktesthelper",
        "ub-uiautomator",
+2 −2
Original line number Diff line number Diff line
@@ -32,8 +32,8 @@ android_test {
    ],

    static_libs: [
        "android-support-test",
        "espresso-core",
        "androidx.test.rules",
        "androidx.test.espresso.core",
        "guava",
        "mockito-target",
        "truth-prebuilt",
+1 −1
Original line number Diff line number Diff line
@@ -136,7 +136,7 @@

    </application>

    <instrumentation android:name="android.support.test.runner.AndroidJUnitRunner"
    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
        android:targetPackage="com.android.documentsui"
        android:label="Tests for DocumentsUI" />

+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@
    <option name="test-tag" value="DocumentsUITests" />
    <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
        <option name="package" value="com.android.documentsui.tests" />
        <option name="runner" value="android.support.test.runner.AndroidJUnitRunner" />
        <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
        <option name="hidden-api-checks" value="false"/>
    </test>
</configuration>
+1 −1
Original line number Diff line number Diff line
@@ -8,6 +8,6 @@ device has SD Card slot. If SD Card is not inserted or supported, the test creat
and uses it instead.

To run just small tests"
adb shell am instrument -w -e debug false -e log false -e timeout_msec 300000 -e size small com.android.documentsui.tests/android.support.test.runner.AndroidJUnitRunner
adb shell am instrument -w -e debug false -e log false -e timeout_msec 300000 -e size small com.android.documentsui.tests/androidx.test.runner.AndroidJUnitRunner

Replace '-e size small' with '-e size large'.
Loading