Signed-off-by: Jean Privat <jean@pryen.org>
return not opt_no_color.value and opt_verbose.value <= 0
end
+ # Clear the line if `has_status` (no-op else)
+ fun clear_status
+ do
+ if has_status then printn "\r\x1B[K"
+ end
+
# Shoe the full description of the test-case.
#
# The output honors `--no-color`.
fun mark_done(du: DocUnit)
do
du.is_done = true
+ toolcontext.clear_status
+ toolcontext.show_unit(du)
show_status
end
print ""
for du in docunits do
- toolcontext.show_unit(du)
- end
-
- for du in docunits do
testsuite.add du.to_xml
end
end
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.