Skip to content

Added readme for on device unit tests #1837

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions testapps/on_device_unit_tests/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
On device unit tests
====================

This test app runs a set of unit tests, to help confirm that the
python-for-android build is actually working properly.

The main tests are for the recipes built in the apk. Each module (or
other tool) is at least imported and subject to some basic check.

This app is experimental, it doesn't yet support things like testing
only the requirements you ask for (so if you build with requirements
other than those specified, the tests may fail). It also has no gui
yet, the results must be checked via logcat.

Building the app
================

This app should be built using buildozer, which it also serves as a
test for::

$ buildozer android debug

Install on an Android device::

$ adb install -r adb install -r bin/p4aunittests-0.1-debug.apk
# or
$ buildozer android deploy

Run the app and check in logcat that all the tests pass::

$ adb logcat | grep python # or look up the adb syntax for this