Merge lp:~nskaggs/ubuntu-clock-app/remove-internet-worldclock-unit-test into lp:ubuntu-clock-app

Proposed by Nicholas Skaggs
Status: Merged
Approved by: Nicholas Skaggs
Approved revision: 298
Merged at revision: 297
Proposed branch: lp:~nskaggs/ubuntu-clock-app/remove-internet-worldclock-unit-test
Merge into: lp:ubuntu-clock-app
Diff against target: 46 lines (+1/-25)
2 files modified
tests/unit/CMakeLists.txt (+1/-1)
tests/unit/tst_worldClock.qml (+0/-24)
To merge this branch: bzr merge lp:~nskaggs/ubuntu-clock-app/remove-internet-worldclock-unit-test
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Ubuntu Clock Developers Pending
Review via email: mp+264760@code.launchpad.net

Commit message

Remove test that requires internet inside unit tests

Description of the change

Remove test that requires internet inside unit tests

Launchpad builders can't access the internet. Internet enabled tests should be run at a higher level. Since the base functionality is otherwise tested in the testsuite, this test can be considered redundant and can be removed.

I also changed the screensize to be more inline with a phone.

To post a comment you must log in.
298. By Nicholas Skaggs

revert alarm change

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Approving to check launchpad build.

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

This has to be the first of its kind from you Nich ;P. (damn inbox notifcations about new MPs..got to disable them to resist involvement)

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-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=== modified file 'tests/unit/CMakeLists.txt'
2--- tests/unit/CMakeLists.txt 2015-03-31 19:03:09 +0000
3+++ tests/unit/CMakeLists.txt 2015-07-14 21:02:00 +0000
4@@ -10,7 +10,7 @@
5
6 macro(DECLARE_QML_TEST TST_NAME TST_QML_FILE)
7 if(USE_XVFB)
8- set(COMMAND_PREFIX ${XVFB_RUN_BIN} -a -s "-screen 0 1024x768x24")
9+ set(COMMAND_PREFIX ${XVFB_RUN_BIN} -a -s "-screen 0 400x600x24")
10 else()
11 set(COMMAND_PREFIX "")
12 endif()
13
14=== modified file 'tests/unit/tst_worldClock.qml'
15--- tests/unit/tst_worldClock.qml 2014-10-14 11:33:23 +0000
16+++ tests/unit/tst_worldClock.qml 2015-07-14 21:02:00 +0000
17@@ -166,29 +166,5 @@
18 // Clean up after the test by deleting the city which was added during the test
19 deleteWorldCity("Amsterdam", "Netherlands")
20 }
21-
22- /*
23- Test to check if a city now found in the world city list can be added
24- by searcing it online and then adding it from the results returned.
25- */
26- function test_addCityBySearchingOnline() {
27- var clockPage = getPage(pageStack, "clockPage")
28-
29- pressAddWorldCityButton()
30-
31- var worldCityPage = getPage(pageStack, "worldCityList")
32- waitForRendering(worldCityPage)
33-
34- /*
35- #TODO: Jenkins machine may run in a confined environment with no
36- access to internet to run this function. Ideally we should mock
37- the data given to this function.
38- */
39- addCityBySearchingOnline("Venice", "Provincia di Venezia, Veneto, Italy")
40- assertWorldCityAddition("Venice", " Veneto, Italy")
41-
42- // Clean up after the test by deleting the city which was added during the test
43- deleteWorldCity("Venice", " Veneto, Italy")
44- }
45 }
46 }

Subscribers

People subscribed via source and target branches