nitunit: keep the status bar at the end line and show progress
[nit.git] / src / testing / testing_suite.nit
index 9ea3a8e..89f58f9 100644 (file)
@@ -150,17 +150,16 @@ class TestSuite
                if not before_module == null then before_module.run
                for case in test_cases do
                        case.run
+                       toolcontext.clear_status
+                       toolcontext.show_unit(case)
                        show_status
                end
 
-               show_status
-               print ""
-
                var after_module = self.after_module
                if not after_module == null then after_module.run
-               for case in test_cases do
-                       toolcontext.show_unit(case)
-               end
+
+               show_status
+               print ""
        end
 
        # Write the test unit for `self` in a nit compilable file.