aboutsummaryrefslogtreecommitdiffstats
path: root/packages/LineageSettingsProvider/tests/README.md
diff options
context:
space:
mode:
authorSam Mortimer <sam@mortimer.me.uk>2019-09-19 16:33:47 -0700
committerSam Mortimer <sam@mortimer.me.uk>2019-09-20 16:44:37 -0700
commit3d25e8b3f777d53da8ad92bd0dc97b1d24747b77 (patch)
tree8abcede1f403d9345869ae2c3892fed1bccdcccc /packages/LineageSettingsProvider/tests/README.md
parent7e03d078bc4577defc09f48f20f411ca82291e5e (diff)
downloadlineage-sdk-3d25e8b3f777d53da8ad92bd0dc97b1d24747b77.tar.gz
lineage-sdk-3d25e8b3f777d53da8ad92bd0dc97b1d24747b77.tar.bz2
lineage-sdk-3d25e8b3f777d53da8ad92bd0dc97b1d24747b77.zip
lineage-sdk: Fix LineageSettingsProvider tests
* Fix bp and manifest to work with AndroidJUnitRunner. * Remove broken tests (we no longer intercept in fw/b settings provider and QS_USE_MAIN_TILES was removed). * Tests pass when executed using: adb shell am instrument org.lineageos.lineagesettings.tests/androidx.test.runner.AndroidJUnitRunner (see README.md for more info) Change-Id: I3fcf4885c61106f43e99847293220afee78e2f6a
Diffstat (limited to 'packages/LineageSettingsProvider/tests/README.md')
-rw-r--r--packages/LineageSettingsProvider/tests/README.md16
1 files changed, 14 insertions, 2 deletions
diff --git a/packages/LineageSettingsProvider/tests/README.md b/packages/LineageSettingsProvider/tests/README.md
index 5b91285e..e4d83ca0 100644
--- a/packages/LineageSettingsProvider/tests/README.md
+++ b/packages/LineageSettingsProvider/tests/README.md
@@ -2,6 +2,18 @@
The tests package contains coverage for the Lineage Settings provider as well as
its public interfaces.
-To run the tests (on a live device):
+To run the tests (on a live device), build and install LineageSettingsProviderTests.apk
+and then run:
- ```adb shell am instrument -w org.lineageos.lineagesettings.tests/android.test.InstrumentationTestRunner```
+```adb shell am instrument org.lineageos.lineagesettings.tests/androidx.test.runner.AndroidJUnitRunner```
+
+Note: we don't use -w to wait for the results because some of the tests involve creating
+and removing a guest account which causes adb connections to get reset.
+
+View the results with:
+
+```adb logcat | grep TestRunner```
+
+End of the output should read something like:
+
+```09-20 16:40:52.879 4146 4165 I TestRunner: run finished: 30 tests, 0 failed, 0 ignored```