Skip to content

Commit 0482be4

Browse files
authored
Merge pull request #1837 from inclement/improve_testapp_doc
Added readme for on device unit tests
2 parents 3658089 + 2765e00 commit 0482be4

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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

0 commit comments

Comments
 (0)