Autopilot tests should properly setup environment
Bug #1316746 reported by
Nicholas Skaggs
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sudoku App |
New
|
Undecided
|
Unassigned | ||
Ubuntu Calculator App |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu Calendar App |
Fix Released
|
Medium
|
Unassigned | ||
Ubuntu Clock App |
Fix Released
|
Medium
|
Unassigned | ||
Ubuntu Document Viewer App |
New
|
Undecided
|
Unassigned | ||
Ubuntu File Manager App |
Fix Released
|
Medium
|
Unassigned | ||
Ubuntu Music App |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu Notes app |
Fix Released
|
Medium
|
Unassigned | ||
Ubuntu Shorts App |
Confirmed
|
Medium
|
Unassigned | ||
Ubuntu Terminal App |
Invalid
|
Undecided
|
Unassigned | ||
Ubuntu Weather App |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Autopilot tests shouldn't be performing invasive actions on the fileystem such as adding and removing files in /home. Instead, as needed, files / folders and the environment for running tests should be isolated from the user data.
Using initctl env vars and mock for the desktop should allow this to occur.
Related branches
lp://staging/~nskaggs/ubuntu-calendar-app/mock-test-env
- Leo Arias (community): Approve
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration)
-
Diff: 186 lines (+76/-59)1 file modifiedtests/autopilot/calendar_app/tests/__init__.py (+76/-59)
lp://staging/~nskaggs/ubuntu-filemanager-app/setup-ap-env
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration)
- Leo Arias (community): Approve
-
Diff: 788 lines (+199/-177)4 files modifiedsrc/app/qml/components/AutoSpacedGrid.qml (+2/-1)
tests/autopilot/filemanager/emulators.py (+26/-58)
tests/autopilot/filemanager/tests/__init__.py (+68/-41)
tests/autopilot/filemanager/tests/test_filemanager.py (+103/-77)
lp://staging/~nskaggs/reminders-app/setup-ap-env2
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration)
- Leo Arias (community): Approve
- Ubuntu Notes app developers: Pending requested
-
Diff: 108 lines (+60/-11)1 file modifiedtests/autopilot/reminders/tests/__init__.py (+60/-11)
lp://staging/~nskaggs/ubuntu-calculator-app/ap-fix-missing-keypress
- PS Jenkins bot: Approve (continuous-integration)
- Leo Arias (community): Approve
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration)
-
Diff: 1349 lines (+639/-492)6 files modifiedSimple/SimplePage.qml (+1/-0)
tests/autopilot/ubuntu_calculator_app/__init__.py (+332/-7)
tests/autopilot/ubuntu_calculator_app/emulators.py (+0/-282)
tests/autopilot/ubuntu_calculator_app/tests/__init__.py (+156/-72)
tests/autopilot/ubuntu_calculator_app/tests/test_screen.py (+91/-0)
tests/autopilot/ubuntu_calculator_app/tests/test_simple_page.py (+59/-131)
Changed in ubuntu-calendar-app: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in ubuntu-weather-app: | |
status: | New → Confirmed |
Changed in ubuntu-rssreader-app: | |
status: | New → Confirmed |
Changed in ubuntu-clock-app: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in ubuntu-weather-app: | |
importance: | Undecided → Medium |
Changed in ubuntu-rssreader-app: | |
importance: | Undecided → Medium |
Changed in ubuntu-filemanager-app: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in reminders-app: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
summary: |
- Autopilot tests should properly setup enviroment + Autopilot tests should properly setup environment |
Changed in reminders-app: | |
status: | Fix Committed → Fix Released |
Changed in ubuntu-filemanager-app: | |
status: | Fix Committed → Fix Released |
Changed in ubuntu-calendar-app: | |
status: | Fix Committed → Fix Released |
Changed in music-app: | |
status: | New → Confirmed |
Changed in music-app: | |
status: | Confirmed → Fix Released |
Changed in ubuntu-calculator-app: | |
status: | Fix Committed → Fix Released |
tags: | added: needs-autopilot-test |
Changed in ubuntu-clock-app: | |
status: | Confirmed → Fix Released |
Changed in ubuntu-terminal-app: | |
status: | New → Confirmed |
Changed in ubuntu-terminal-app: | |
status: | Confirmed → Invalid |
To post a comment you must log in.
Fix committed into lp:ubuntu-calendar-app at revision 267, scheduled for release in ubuntu- calendar- app, milestone alpha-1