[Libreoffice-commits] core.git: uitest/test_main.py

Markus Mohrhard markus.mohrhard at googlemail.com
Thu Jun 23 03:34:52 UTC 2016


 uitest/test_main.py |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit b722f3d6fc72877e8caaaae7291d5d736ddc494d
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Thu Jun 23 05:32:37 2016 +0200

    uitest: improve the message of the ui test runner
    
    Change-Id: I5026590506b4ddf3db95fb14fe6b0890255a5a25

diff --git a/uitest/test_main.py b/uitest/test_main.py
index 15e5d70..72c18ba 100644
--- a/uitest/test_main.py
+++ b/uitest/test_main.py
@@ -95,6 +95,12 @@ if __name__ == '__main__':
         sys.exit()
     test_suite = get_test_suite(opts)
 
-    unittest.TextTestRunner().run(test_suite)
+    result = unittest.TextTestRunner(verbosity=2).run(test_suite)
+    print("Tests run: %d" % result.testsRun)
+    print("Tests failed: %d" % len(result.failures))
+    print("Tests errors: %d" % len(result.errors))
+    if not result.wasSuccessful():
+        sys.exit(1)
+    sys.exit(0)
 
 # vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list