Merge lp:~nskaggs/reminders-app/ap-readme-cleanup into lp:reminders-app

Proposed by Nicholas Skaggs
Status: Merged
Approved by: Nicholas Skaggs
Approved revision: 548
Merged at revision: 545
Proposed branch: lp:~nskaggs/reminders-app/ap-readme-cleanup
Merge into: lp:reminders-app
Diff against target: 148 lines (+106/-15)
3 files modified
README-Autopilot.md (+74/-0)
README.Mergeproposal.md (+32/-0)
tests/autopilot/reminders/tests/__init__.py (+0/-15)
To merge this branch: bzr merge lp:~nskaggs/reminders-app/ap-readme-cleanup
Reviewer Review Type Date Requested Status
Jenkins Bot continuous-integration Approve
Ubuntu Notes app developers Pending
Review via email: mp+288352@code.launchpad.net

Commit message

AP docs and cleanup

Description of the change

AP docs and cleanup

To post a comment you must log in.
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :

FAILED: Autolanding.
More details in the following jenkins job:
https://core-apps-jenkins.ubuntu.com/job/reminders-app-autolanding/296/
Executed test runs:
    None: https://core-apps-jenkins.ubuntu.com/job/generic-land-mp/5665/console

review: Needs Fixing (continuous-integration)
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :

FAILED: Autolanding.
More details in the following jenkins job:
https://core-apps-jenkins.ubuntu.com/job/reminders-app-autolanding/298/
Executed test runs:
    None: https://core-apps-jenkins.ubuntu.com/job/generic-land-mp/5670/console

review: Needs Fixing (continuous-integration)
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :

FAILED: Autolanding.
More details in the following jenkins job:
https://core-apps-jenkins.ubuntu.com/job/reminders-app-autolanding/300/
Executed test runs:
    None: https://core-apps-jenkins.ubuntu.com/job/generic-land-mp/5673/console

review: Needs Fixing (continuous-integration)
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :

FAILED: Autolanding.
More details in the following jenkins job:
https://core-apps-jenkins.ubuntu.com/job/reminders-app-autolanding/302/
Executed test runs:
    None: https://core-apps-jenkins.ubuntu.com/job/generic-land-mp/5675/console

review: Needs Fixing (continuous-integration)
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'README-Autopilot.md'
2--- README-Autopilot.md 1970-01-01 00:00:00 +0000
3+++ README-Autopilot.md 2016-03-08 16:10:34 +0000
4@@ -0,0 +1,74 @@
5+Running Autopilot tests
6+=======================
7+If you are looking for more info about Autopilot or writing AP tests, here are some useful links to help you:
8+
9+- [Ubuntu - Quality](http://developer.ubuntu.com/start/quality)
10+- [Autopilot - Python](https://developer.ubuntu.com/api/autopilot/python/1.5.0/)
11+
12+For help and options on running tests, see:
13+
14+- [Autopilot tests](https://developer.ubuntu.com/en/start/platform/guides/running-autopilot-tests/)
15+
16+Prerequisites
17+=============
18+
19+Install the following autopilot packages required to run the tests,
20+
21+ $ sudo apt-get install python3-autopilot libautopilot-qt ubuntu-ui-toolkit-autopilot python3-autopilot-vis
22+
23+Running tests on the desktop
24+============================
25+
26+Using terminal:
27+
28+* Branch the code
29+
30+ $ bzr branch lp:reminders-app
31+
32+* Navigate to the tests/autopilot directory.
33+
34+ $ cd tests/autopilot
35+
36+* run all tests.
37+
38+ $ autopilot3 run -vv reminders
39+
40+* to list all tests:
41+
42+ $ autopilot3 list reminders
43+
44+ To run only one test
45+
46+ $ autopilot3 run -vv reminders.tests.test_name
47+
48+* Debugging tests using autopilot vis
49+
50+ $ autopilot3 launch -i Qt qmlscene src/app/reminders
51+
52+ $ autopilot3 vis
53+
54+Running tests using Ubuntu SDK
55+==============================
56+
57+Refer this [tutorial](https://developer.ubuntu.com/en/start/platform/guides/running-autopilot-tests/) to run tests on Ubuntu SDK:
58+
59+Running tests on device or emulator:
60+====================================
61+
62+Using autopkg:
63+
64+* Branch the code
65+
66+ $ bzr branch lp:reminders-app
67+
68+* Navigate to the source directory.
69+
70+ $ cd reminders-app
71+
72+* Build a click package
73+
74+ $ click-buddy .
75+
76+* Run the tests on device (assumes only one click package in the directory)
77+
78+ $ adt-run . *.click --- ssh -s adb -- -p <PASSWORD>
79\ No newline at end of file
80
81=== added file 'README.Mergeproposal.md'
82--- README.Mergeproposal.md 1970-01-01 00:00:00 +0000
83+++ README.Mergeproposal.md 2016-03-08 16:10:34 +0000
84@@ -0,0 +1,32 @@
85+Prerequisites to approving a Merge Proposal (MP)
86+================================================
87+
88+Over time, it has been found that insufficient testing by reviewers sometimes leads to reminders trunk not buildable in Qtcreator due to manifest errors, or translation pot file not updated. As such, please follow the checklist below before top-approving a MP.
89+
90+Checklist
91+=========
92+
93+* Does the MP add/remove user visible strings? If Yes, has the pot file been
94+ updated?
95+
96+* Does the MP change the UI? If Yes, has it been approved by design?
97+
98+* Did you perform an exploratory manual test run of your code change and any
99+ related functionality?
100+
101+* If the MP fixes a bug or implements a feature, are there accompanying unit
102+ and autopilot tests?
103+
104+* Is the reminders trunk buildable and runnable using Qtcreator?
105+
106+* Was the debian changelog updated?
107+
108+* Was the copyright years updated if necessary?
109+
110+The above checklist is more of a guideline to help reminders trunk stay buildable,
111+stable and up to date.
112+
113+
114+Jenkins
115+=======
116+In addition to manual reviews, merge proposals are subject to being run in jenkins to ensure the application builds and any unit tests are successful. For more information on jenkins and how it works, see the [Core Apps Jenkins Wiki](https://wiki.ubuntu.com/Touch/CoreApps/Jenkins)
117
118=== modified file 'tests/autopilot/reminders/tests/__init__.py'
119--- tests/autopilot/reminders/tests/__init__.py 2016-02-25 20:04:31 +0000
120+++ tests/autopilot/reminders/tests/__init__.py 2016-03-08 16:10:34 +0000
121@@ -186,12 +186,6 @@
122 temp_dir = temp_dir_fixture.path
123 temp_xdg_config_home = os.path.join(temp_dir, '.config')
124
125- # If running under xvfb, as jenkins does,
126- # xsession will fail to start without xauthority file
127- # Thus if the Xauthority file is in the home directory
128- # make sure we copy it to our temp home directory
129- self._copy_xauthority_file(temp_dir)
130-
131 self.useFixture(
132 fixtures.EnvironmentVariable('HOME', newvalue=temp_dir))
133 self.useFixture(
134@@ -202,15 +196,6 @@
135
136 return temp_dir
137
138- def _copy_xauthority_file(self, directory):
139- """Copy .Xauthority file to directory, if it exists in /home."""
140- xauth = os.path.expanduser(os.path.join('~', '.Xauthority'))
141- if os.path.isfile(xauth):
142- logger.debug("Copying .Xauthority to " + directory)
143- shutil.copyfile(
144- os.path.expanduser(os.path.join('~', '.Xauthority')),
145- os.path.join(directory, '.Xauthority'))
146-
147
148 class RemindersAppTestCase(BaseTestCaseWithTempHome):
149

Subscribers

People subscribed via source and target branches