summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-24 00:25:14 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-24 00:26:09 +0200
commit940eeadf9bd303c67edb2e6b6d5a1207c8aa8c3d (patch)
treef36bd6bedf0b20c762a7262b22fae56171a36a48 /uitest
parentb3b09e461c84a910acb61060647cc476e8f6bae8 (diff)
uitest: add execution time for each test
Change-Id: I056f739b97b03ce514ffa692bfe4bfeb62f76de8
Diffstat (limited to 'uitest')
-rw-r--r--uitest/UITestCase.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/uitest/UITestCase.py b/uitest/UITestCase.py
index 5628d9de3f67..5e088042e713 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: */