nitunit: testsuite+diff do not info missing diff if raw_output.is_empty
[nit.git] / src / testing / testing_suite.nit
index 89f58f9..0137ef3 100644 (file)
@@ -150,7 +150,7 @@ class TestSuite
                if not before_module == null then before_module.run
                for case in test_cases do
                        case.run
-                       toolcontext.clear_status
+                       toolcontext.clear_progress_bar
                        toolcontext.show_unit(case)
                        show_status
                end
@@ -288,7 +288,7 @@ class TestCase
                                                error = "Difference with expected output: diff -u {sav} {res_name}.out1"
                                                toolcontext.modelbuilder.failed_tests += 1
                                        end
-                               else
+                               else if not raw_output.is_empty then
                                        toolcontext.info("No diff: {sav} not found", 2)
                                end
                        end