nitunit: keep the status bar at the end line and show progress
[nit.git] / src / testing / testing_doc.nit
index 872bff2..936f6dc 100644 (file)
@@ -86,6 +86,8 @@ class NitUnitExecutor
        fun mark_done(du: DocUnit)
        do
                du.is_done = true
+               toolcontext.clear_status
+               toolcontext.show_unit(du)
                show_status
        end
 
@@ -131,10 +133,6 @@ class NitUnitExecutor
                print ""
 
                for du in docunits do
-                       toolcontext.show_unit(du)
-               end
-
-               for du in docunits do
                        testsuite.add du.to_xml
                end
        end