File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
testapps/on_device_unit_tests Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ On device unit tests
2+ ====================
3+
4+ This test app runs a set of unit tests, to help confirm that the
5+ python-for-android build is actually working properly.
6+
7+ The main tests are for the recipes built in the apk. Each module (or
8+ other tool) is at least imported and subject to some basic check.
9+
10+ This app is experimental, it doesn't yet support things like testing
11+ only the requirements you ask for (so if you build with requirements
12+ other than those specified, the tests may fail). It also has no gui
13+ yet, the results must be checked via logcat.
14+
15+ Building the app
16+ ================
17+
18+ This app should be built using buildozer, which it also serves as a
19+ test for::
20+
21+ $ buildozer android debug
22+
23+ Install on an Android device::
24+
25+ $ adb install -r adb install -r bin/p4aunittests-0.1-debug.apk
26+ # or
27+ $ buildozer android deploy
28+
29+ Run the app and check in logcat that all the tests pass::
30+
31+ $ adb logcat | grep python # or look up the adb syntax for this
You can’t perform that action at this time.
0 commit comments