uitest/UITestCase.py | 4 ++++ 1 file changed, 4 insertions(+) New commits: commit 940eeadf9bd303c67edb2e6b6d5a1207c8aa8c3d Author: Markus Mohrhard <markus.mohrh...@googlemail.com> Date: Fri Jun 24 00:25:14 2016 +0200
uitest: add execution time for each test Change-Id: I056f739b97b03ce514ffa692bfe4bfeb62f76de8 diff --git a/uitest/UITestCase.py b/uitest/UITestCase.py index 5628d9d..5e08804 100644 --- a/uitest/UITestCase.py +++ b/uitest/UITestCase.py @@ -6,6 +6,7 @@ # import unittest +import time from uitest_helper import UITest @@ -25,8 +26,11 @@ class UITestCase(unittest.TestCase): "org.libreoffice.uitest.UITest", self.xContext) self.ui_test = UITest(self.xUITest, self.xContext) + self.startTime = time.time() def tearDown(self): + t = time.time() - self.startTime + print("Execution time for %s: %.3f" % (self.id(), t)) self.connection.tearDown() # vim:set shiftwidth=4 softtabstop=4 expandtab: */ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits