Merge lp://qastaging/~ahayzen/music-app/add-url-dispatcher-tests into lp://qastaging/music-app/trusty

Proposed by Andrew Hayzen
Status: Work in progress
Proposed branch: lp://qastaging/~ahayzen/music-app/add-url-dispatcher-tests
Merge into: lp://qastaging/music-app/trusty
Diff against target: 280 lines (+124/-31)
7 files modified
click/manifest.json.in (+7/-1)
debian/control (+2/-0)
music-app.qml (+24/-26)
tests/autopilot/music_app/__init__.py (+6/-1)
tests/autopilot/music_app/tests/__init__.py (+3/-3)
tests/autopilot/music_app/tests/test_music.py (+60/-0)
tests/autopilot/music_app/url_dispatcher.py (+22/-0)
To merge this branch: bzr merge lp://qastaging/~ahayzen/music-app/add-url-dispatcher-tests
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Leo Arias (community) code review of the autopilot code Approve
Andrew Hayzen Abstain
Review via email: mp+233840@code.qastaging.launchpad.net

Commit message

* Add tests for url-dispatcher
* Fix for depends and allow autopkg support
* Fix for recent item added even with a bad url

Description of the change

* Add tests for url-dispatcher
* Fix for depends and allow autopkg support
* Fix for recent item added even with a bad url

TESTING:
This should be tested on device in the following way...

Install the new click package:
$ bzr branch lp:~andrew-hayzen/music-app/add-url-dispatcher-tests /tmp/add-dispatcher-tests
$ cd /tmp/add-dispatcher-tests
$ click-buddy --dir . --provision

To just run the changed tests:
$ ADT_AUTOPILOT_MODULE="-v music_app.tests.test_music.TestMainWindow.test_url_dispatcher_album_play" adt-run /tmp/add-dispatcher-tests --click com.ubuntu.music --- ssh -s adb
$ ADT_AUTOPILOT_MODULE="-v music_app.tests.test_music.TestMainWindow.test_url_dispatcher_music_play" adt-run /tmp/add-dispatcher-tests --click com.ubuntu.music --- ssh -s adb

To run all tests:
$ adt-run /tmp/add-dispatcher-tests --click com.ubuntu.music --- ssh -s adb

Note you need a newer adt if you are on trusty see instructions for install of autopkgtest here [0]

0 - http://www.theorangenotebook.com/2014/09/autopilot-test-runners.html

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
620. By Andrew Hayzen

* Move dispatcher to helper

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
621. By Andrew Hayzen

* Merge of trunk

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
622. By Andrew Hayzen

* Fix for use of old artistName

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
623. By Andrew Hayzen

* Fix for unicode errors
* Jenkins debug

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
624. By Andrew Hayzen

* Ensure url-dispatcher has started before calling it

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
625. By Andrew Hayzen

* Pep8 fix

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
626. By Andrew Hayzen

* Only run tests when in click environment

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Leo Arias (elopio) wrote :

Some inline comments.

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

#blocked as you cannot test due to bug 1370800

I've started resolving the comments, but we really need to fix ^^ bug first, otherwise you can't test if these works.

627. By Andrew Hayzen

* Various fixes for url-dispatcher

628. By Andrew Hayzen

* Merge of trunk

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
629. By Andrew Hayzen

* Fixes for pep8

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
630. By Andrew Hayzen

* Remove code comments

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Leo Arias (elopio) wrote :

Some pita comments inline. This is pretty good, thanks Andrew.

631. By Andrew Hayzen

* Various fixes

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

I would like to land this after this [0] has landed so blocking myself for a bit.

0 - https://code.launchpad.net/~andrew-hayzen/music-app/ap-mocking-fixes/+merge/235821

review: Needs Fixing
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
632. By Andrew Hayzen

* Merge of trunk

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Unblocking myself as the other mp has landed.

review: Abstain
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Leo Arias (elopio) wrote :

ahayzen_: as you added the decorator to the url dispatcher call, you don't need
235 + logger.debug("Calling URL Dispatcher - " + path)
elopio, ah yes good spot ;)
ahayzen_: and last pita comment, pep8 recommends to capitalize all the letter of an abbreviation.
so URLDispatcher instead of UrlDispatcher.
elopio, ah yes ok i'll do that
ahayzen_: I'm really happy with your python code. I don't know much about the QML code, so it would be safer if you get somebody to review that part.

review: Approve (code review of the autopilot code)
633. By Andrew Hayzen

* Removal of extra debugging
* Rename UrlDispatcher to URLDispatcher

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

What's up with this mp?

Revision history for this message
Victor Thompson (vthompson) wrote :

In my opinion we could do either of the following:

1. Finish review and merge this into trunk, then merge the change into the remix branch. Benefit being that the 2 added tests get some usage early on, negative being that this is extra work if something isn't quite right.
2. Create a new MP for this once remix is trunk. Benefit being we can still focus on our redesign without possible distraction.

#2 might be the safest, but #1 might be preferable if we want these tests in as early as possible.

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

I'd vote to go with the second; heads down on remix. Thanks.

Revision history for this message
Victor Thompson (vthompson) wrote :

I'll put this as a WIP as it will probably be resubmitted.

Unmerged revisions

633. By Andrew Hayzen

* Removal of extra debugging
* Rename UrlDispatcher to URLDispatcher

632. By Andrew Hayzen

* Merge of trunk

631. By Andrew Hayzen

* Various fixes

630. By Andrew Hayzen

* Remove code comments

629. By Andrew Hayzen

* Fixes for pep8

628. By Andrew Hayzen

* Merge of trunk

627. By Andrew Hayzen

* Various fixes for url-dispatcher

626. By Andrew Hayzen

* Only run tests when in click environment

625. By Andrew Hayzen

* Pep8 fix

624. By Andrew Hayzen

* Ensure url-dispatcher has started before calling it

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: