Kouhei Sutou
null+****@clear*****
Sun May 22 20:55:54 JST 2016
Kouhei Sutou 2016-05-22 20:55:54 +0900 (Sun, 22 May 2016) New Revision: 6bafa9566afc55de862271d6c5d927369ddf0851 https://github.com/groonga/grntest/commit/6bafa9566afc55de862271d6c5d927369ddf0851 Message: Improve report for suppressed omission Modified files: lib/grntest/reporters/inplace-reporter.rb lib/grntest/reporters/mark-reporter.rb lib/grntest/reporters/stream-reporter.rb lib/grntest/worker.rb Modified: lib/grntest/reporters/inplace-reporter.rb (+3 -0) =================================================================== --- lib/grntest/reporters/inplace-reporter.rb 2016-05-22 17:52:38 +0900 (e1098f5) +++ lib/grntest/reporters/inplace-reporter.rb 2016-05-22 20:55:54 +0900 (425e607) @@ -67,6 +67,9 @@ module Grntest end end + def on_test_omission_suppressed(worker, result) + end + def on_test_no_check(worker, result) redraw do report_test(worker, result) Modified: lib/grntest/reporters/mark-reporter.rb (+6 -0) =================================================================== --- lib/grntest/reporters/mark-reporter.rb 2016-05-22 17:52:38 +0900 (220ca42) +++ lib/grntest/reporters/mark-reporter.rb 2016-05-22 20:55:54 +0900 (b2ff2f5) @@ -73,6 +73,12 @@ module Grntest end end + def on_test_omission_suppressed(worker, result) + synchronize do + report_test_result_mark("O", result) + end + end + def on_test_no_check(worker, result) synchronize do report_test_result_mark("N", result) Modified: lib/grntest/reporters/stream-reporter.rb (+4 -0) =================================================================== --- lib/grntest/reporters/stream-reporter.rb 2016-05-22 17:52:38 +0900 (c8a9e7d) +++ lib/grntest/reporters/stream-reporter.rb 2016-05-22 20:55:54 +0900 (9f5e21d) @@ -63,6 +63,10 @@ module Grntest report_actual(result) end + def on_test_omission_suppressed(worker, result) + report_test_result(result, worker.status) + end + def on_test_no_check(worker, result) report_test_result(result, worker.status) report_actual(result) Modified: lib/grntest/worker.rb (+3 -1) =================================================================== --- lib/grntest/worker.rb 2016-05-22 17:52:38 +0900 (182a451) +++ lib/grntest/worker.rb 2016-05-22 20:55:54 +0900 (27a1e71) @@ -146,7 +146,9 @@ module Grntest def on_test_omission(result) @status = "omitted" @result.on_test_omission - unles****@teste*****_omit_log? + if****@teste*****_omit_log? + @reporter.on_test_omission_suppressed(self, result) + else @reporter.on_test_omission(self, result) end end -------------- next part -------------- HTML����������������������������...Download