Merge lp://staging/~zyga/snapcraft/plainbox-app into lp://staging/~snappy-dev/snapcraft/core
Status: | Needs review |
---|---|
Proposed branch: | lp://staging/~zyga/snapcraft/plainbox-app |
Merge into: | lp://staging/~snappy-dev/snapcraft/core |
Diff against target: |
219 lines (+215/-0) 1 file modified
runtests.py (+215/-0) |
To merge this branch: | bzr merge lp://staging/~zyga/snapcraft/plainbox-app |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Federico Gimenez (community) | Needs Information | ||
Review via email: mp+272720@code.staging.launchpad.net |
Commit message
Add runtests.py
Unmerged revisions
- 213. By Zygmunt Krynicki
-
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 <email address hidden>
Looks great, the only thing missing that I see is the ability to run different test plans, now it's fixed to "normal". In the runtests.sh script you can specify the kind of tests to be run (unit or plainbox) and, in the case of plainbox tests, the test plan to be run:
$ ./runtests.sh
$ ./runtests.sh unit
$ ./runtests.sh plainbox examples
Are you planning to add this feature to the script?
Perhaps it would be also nice to get a more verbose output through an option, what do you think?
Thanks,