/srv/irclogs.ubuntu.com/2015/04/22/#ubuntu-autopilot.txt

=== MacSlow is now known as MacSlow|lunch
=== MacSlow|lunch is now known as MacSlow
MacSlowelopio, hey there... can you point me to a guide/example wrt to ap-fixtures (https://code.launchpad.net/~macslow/unity8/shellRotation/+merge/256493/comments/639107)14:05
elopioMacSlow: not specific to autopilot: https://pypi.python.org/pypi/fixtures14:06
MacSlowelopio, ah ok... looking14:06
elopioMacSlow: we can also pair if you need an extra hand on it, just ping us.14:07
MacSlowelopio, I probably will... this too is new ground for me14:07
MacSlowelopio, I didn't even write LaunchUnityWithFakeSensors in the first place14:08
elopioMacSlow: I wrote it :)14:11
MacSlowelopio, oh... and I'm meant to refactor it... :)14:13
elopioMacSlow: that probably shouldn't happen in this MP though, already too big.14:14
MacSlowelopio, I would welcome that... but Saviq suggested it...14:15
MacSlowelopio, by now i'm so worn out on that branch... I would really like to be able to put it to an end... I fixed all the other issues14:15
elopioSaviq: are you ok with filling a bug about turning the Unity launch into a fixture, a doing it in a following branch?14:15
MacSlowelopio, so if you would take another look14:15
Saviqelopio, MacSlow, sure, just file a bug for it and land as is14:16
Saviqbut before we touch either that or the base UnityTestCase there, we need to factor it out14:16
MacSlowelopio, you file the fixture-refactor wishlist/bug?14:16
Saviq(again)14:16
elopioMacSlow: one second.14:19
elopioMacSlow: https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/144720614:39
ubot5Ubuntu bug 1447206 in unity8 (Ubuntu) "in autopilot tests, UnityTestCase setup is too big and complicated" [Undecided,New]14:39
elopioMacSlow: your branch looks good now. Only two minor details:14:40
elopio- I would rename main_win to main_window14:40
elopio- I would change14:40
elopio438+            logger.info('unsupported orientation ' + self.action + ' skipped.')14:40
elopioto14:40
elopioself.skipTest('unsupported orientation ' + self.action)14:40
MacSlowelopio, wilco14:40
MacSlowelopio, that skipTest needs to happen at the beginning of test_rotation_with_webbrowser_app(), right?14:43
elopioMacSlow: would be good, yes. The earlier you discover that the test can't be run, the less wasted time you spend on it.14:44
elopioin this case I think you can't put it as the first step of the test, but certainly you can move it up a little.14:45
MacSlowI put it after self.shell_proxy = unity_with_sensors.main_win.select_single('Shell') before the app is launched...14:47
MacSlowthat saves at least a bit of execution time I guess14:47
MacSlowelopio, pushed suggested fix... r161114:53
elopioMacSlow: ok, +1. Now, how do we confirm jenkins' tests are passing?14:56
MacSlowelopio, I added a further comment on the build-depencecies in the MP's description... it needs libunity-api-dev >= 7.97 which isn't released yet... all we can do is wait14:57
elopioMacSlow: awesome. Thanks for working on this.14:59
elopiowhen I proposed this to be in our previous sprint, I was expecting our team to help you more with the scenarios and the fixtures and all the python details.14:59
elopiobut then I went on vacations, got drunk and forgot about work :)14:59
elopioI mentioned this in our retrospective, so next time we really help devs to get the tests done, not just point out the way to go.15:00
MacSlowelopio, well... at least I left the fixture-refactor for you to do :)15:22
elopioMacSlow: ah, well... I'm not sure I will be able to do it. That's a negotiation between your manager and my manager to see who does it.15:23
elopioI might some free time tomorrow though, I'll try to sneak it in this week.15:24

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!