[Bf-blender-cvs] [5af854353a4] pygpu_extensions: Mesh automated testing: improve progress printing

Habib Gahbiche noreply at git.blender.org
Fri Feb 12 16:17:19 CET 2021


Commit: 5af854353a4ff2b2feee8f7fe5c5159d3c0dd336
Author: Habib Gahbiche
Date:   Thu Feb 11 23:07:00 2021 +0530
Branches: pygpu_extensions
https://developer.blender.org/rB5af854353a4ff2b2feee8f7fe5c5159d3c0dd336

Mesh automated testing: improve progress printing

Print number of total tests with each test to show how many tests have been executed and how many are left.
Example: `Running test 27/36: PlaneFaceSplitByEdges...`

Reviewed By: calra, mont29

Differential Revision: https://developer.blender.org/D10278

===================================================================

M	tests/python/modules/mesh_test.py

===================================================================

diff --git a/tests/python/modules/mesh_test.py b/tests/python/modules/mesh_test.py
index a58b803b22d..020b1bff08f 100644
--- a/tests/python/modules/mesh_test.py
+++ b/tests/python/modules/mesh_test.py
@@ -662,8 +662,7 @@ class RunTest:
             test_name = each_test.test_name
             if self.verbose:
                 print()
-                print("Running test {}...".format(test_number))
-                print("Test name {}\n".format(test_name))
+                print("Running test {}/{}: {}...".format(test_number+1, len(self.tests), test_name))
             success = self.run_test(test_name)
 
             if not success:



More information about the Bf-blender-cvs mailing list