~zyga/snapcraft/plainbox-app

Viewing all changes in revision 213.

  • Committer: Zygmunt Krynicki
  • Date: 2015-09-29 11:47:21 UTC
  • Revision ID: zygmunt.krynicki@canonical.com-20150929114721-ug0qj9t3lsvttfr9
Add runtests.py

This patch adds a new tool for running tests, runtests.py, intending to
eventually replace the runtests.sh shell script.

This tool uses Plainbox APIs that are only available on python3-plainbox
0.23 (which pulls in python3-guacamole 0.9). The script is feature
complete as far as integration tests go but doesn't (yet) handle unit
tests. I'm looking at how to support that separately.

This patch makes runtests.py take optional advantage of
python3-argcomplete. When installed and properly activated (see below),
runtests.py will complete the partial identifiers of the tests to run.
This makes it easier to run one or a few tests quickly.

To enable that in your active shell, run:

eval "$(register-python-argcomplete3 runtests.py)"

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: