Merge lp:~fginther/ubuntu-test-cases/click-testing into lp:ubuntu-test-cases/touch

Proposed by Francis Ginther
Status: Superseded
Proposed branch: lp:~fginther/ubuntu-test-cases/click-testing
Merge into: lp:ubuntu-test-cases/touch
Diff against target: 51 lines (+44/-0)
1 file modified
README-cli.rst (+44/-0)
To merge this branch: bzr merge lp:~fginther/ubuntu-test-cases/click-testing
Reviewer Review Type Date Requested Status
Ubuntu Test Case Developers Pending
Review via email: mp+251461@code.launchpad.net

This proposal has been superseded by a proposal from 2015-03-02.

Commit message

Add README documentation for testing a modified click app.

Description of the change

Add README documentation for testing a modified click app.

To post a comment you must log in.
Revision history for this message
Francis Ginther (fginther) wrote :

I've also been playing with a modified version oh phablet-click-test-setup (from phablet-tools) which takes care of installation of the test sources and would allow removing the following:

33 +The above phablet-click-test-setup command will install the standard test
34 +dependencies and the click application's test sources as specified in the
35 +manifest. This is usually the application's trunk branch. To override the test
36 +sources with local changes, replace the test sources that were copied to the
37 +device. This example assumes the application code is checked out under the
38 +'dropping-letters' directory with the test sources under 'tests/autopilot'::
39 +
40 + adb shell rm -rf /home/phablet/autopilot/dropping_letters_app
41 + adb push dropping-letters/tests/autopilot \
42 + /home/phablet/autopilot

Revision history for this message
Paul Larson (pwlars) wrote :

is pkcon preferred over click install?

Revision history for this message
Francis Ginther (fginther) wrote :

> is pkcon preferred over click install?

I've been unable to find info in any of the wiki's but the 'click' command provides this:
"
phablet@ubuntu-phablet:~$ click install --help
Usage: click install [options] PACKAGE-FILE

This is a low-level tool; to install a package as an ordinary user
you should generally use "pkcon install-local PACKAGE-FILE"
instead.
"

Will keep looking.

Revision history for this message
Colin Watson (cjwatson) wrote :

The click documentation should be considered authoritative on this.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'README-cli.rst'
2--- README-cli.rst 2014-11-10 19:28:56 +0000
3+++ README-cli.rst 2015-03-02 14:56:20 +0000
4@@ -96,3 +96,47 @@
5 Then execute the following script::
6
7 ./scripts/run-mp.sh
8+
9+Running Tests for a Modified Click Application
10+----------------------------------------------
11+
12+First privision the device with the desired image. To get the very latest::
13+
14+ ./scripts/provision.sh -w
15+
16+Alternatively, to install the latest ubuntu-rtm image::
17+
18+ export IMAGE_OPT="--bootstrap --developer-mode --channel=ubuntu-touch/ubuntu-rtm/14.09-proposed"
19+ ./scripts/provision.sh -w
20+
21+Once the image has been provisioned, install the click app to test.
22+The dropping-letters application is used in this example::
23+
24+ adb push com.ubuntu.dropping-letters_0.1.2.2.67_all.click /tmp
25+ adb shell pkcon --allow-untrusted install-local \
26+ /tmp/com.ubuntu.dropping-letters_0.1.2.2.67_all.click
27+
28+Now install the test sources ('--wipe' will remove any previously installed
29+test sources)::
30+
31+ phablet-click-test-setup --wipe --click com.ubuntu.dropping-letters
32+
33+The above phablet-click-test-setup command will install the standard test
34+dependencies and the click application's test sources as specified in the
35+manifest. This is usually the application's trunk branch. To override the test
36+sources with local changes, replace the test sources that were copied to the
37+device. This example assumes the application code is checked out under the
38+'dropping-letters' directory with the test sources under 'tests/autopilot'::
39+
40+ adb shell rm -rf /home/phablet/autopilot/dropping_letters_app
41+ adb push dropping-letters/tests/autopilot \
42+ /home/phablet/autopilot
43+
44+Finally, run the application tests::
45+
46+ ./scripts/run-autopilot-tests.sh -a dropping_letters_app
47+
48+The test results are available under::
49+
50+ clientlogs/dropping_letters_app/test_results.xml
51+

Subscribers

People subscribed via source and target branches