Drive app migration tests through instrumentation

Make tests less flaky
This commit is contained in:
topjohnwu
2024-12-25 04:29:02 -08:00
committed by John Wu
parent 08ea937f7c
commit 9e2b59060d
4 changed files with 121 additions and 21 deletions
+11 -2
View File
@@ -2,13 +2,22 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission
android:name="android.permission.QUERY_ALL_PACKAGES"
tools:ignore="QueryAllPackagesPermission" />
<queries tools:node="removeAll" />
<application tools:node="replace">
<uses-library android:name="android.test.runner" />
</application>
<instrumentation
android:name="com.topjohnwu.magisk.test.AppTestRunner"
android:targetPackage="com.topjohnwu.magisk" />
<instrumentation
android:name="com.topjohnwu.magisk.test.TestRunner"
android:targetPackage="com.topjohnwu.magisk"
android:label="Tests for Magisk" />
android:targetPackage="com.topjohnwu.magisk.test" />
</manifest>