mailr12138 - /1.3/test_suite/test_suite_runner.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on January 04, 2011 - 14:07:
Author: bugman
Date: Tue Jan  4 14:07:46 2011
New Revision: 12138

URL: http://svn.gna.org/viewcvs/relax?rev=12138&view=rev
Log:
The test suite summary is not longer printed for each category when all tests 
are run.


Modified:
    1.3/test_suite/test_suite_runner.py

Modified: 1.3/test_suite/test_suite_runner.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/test_suite_runner.py?rev=12138&r1=12137&r2=12138&view=diff
==============================================================================
--- 1.3/test_suite/test_suite_runner.py (original)
+++ 1.3/test_suite/test_suite_runner.py Tue Jan  4 14:07:46 2011
@@ -66,17 +66,21 @@
 
 
         # Execute the system/functional tests.
-        self.run_system_tests()
+        self.run_system_tests(summary=False)
 
         # Execute the unit tests.
-        self.run_unit_tests()
+        self.run_unit_tests(summary=False)
 
         # Print out a summary of the test suite.
         self.summary()
 
 
-    def run_system_tests(self):
-        """Function for executing the system/functional tests."""
+    def run_system_tests(self, summary=True):
+        """Execute the system/functional tests.
+
+        @keyword summary:   A flag which if True will cause a summary to be 
printed.
+        @type summary:      bool
+        """
 
         # Print a header.
         title('System / functional tests')
@@ -86,11 +90,16 @@
         self.system_result = system_runner.run(self.tests)
 
         # Print out a summary of the test suite.
-        self.summary()
-
-
-    def run_unit_tests(self):
-        """Function for executing the unit tests."""
+        if summary:
+            self.summary()
+
+
+    def run_unit_tests(self, summary=True):
+        """Execute the unit tests.
+
+        @keyword summary:   A flag which if True will cause a summary to be 
printed.
+        @type summary:      bool
+        """
 
         # Print a header.
         title('Unit tests')
@@ -100,7 +109,8 @@
         self.unit_result = unit_runner.run(runner=RelaxTestRunner())
 
         # Print out a summary of the test suite.
-        self.summary()
+        if summary:
+            self.summary()
 
 
     def summary(self):




Related Messages


Powered by MHonArc, Updated Tue Jan 04 14:20:02 2011