mozilla/gaia-ui-tests — pull request #144 by davehunt (2012-12-04 23:48:47+00:00)
Title: Capture screenshot on test method failure

This pull adds screenshot debug on failure. The screenshots are available in debug/testclass/testmethod directory. Any tests that fail in setUp will not run tearDown, and therefore we cannot capture a screenshot for these.

Unfortunately, this also meant removing the closing of the applications from the test tearDown methods, as this meant the application was already closed before the screenshot is taken. This shouldn't be a problem as we can rely on the framework to kill all open apps on tearDown and setUp. Not ideal, but I think the benefit outweighs the cost here. I would appreciate your thoughts.

I also fixed a couple of missing calls to GaiaTestCase.tearDown.