[Groonga-commit] groonga/groonga-test [master] Show number of not checked tests at the end

Back to archive index

null+****@clear***** null+****@clear*****
2012年 3月 9日 (金) 17:14:49 JST


Kouhei Sutou	2012-03-09 17:14:49 +0900 (Fri, 09 Mar 2012)

  New Revision: 7df99213f9c1bd46dd3ff54590188b932d9dcd8a

  Log:
    Show number of not checked tests at the end

  Modified files:
    lib/groonga/tester.rb

  Modified: lib/groonga/tester.rb (+4 -1)
===================================================================
--- lib/groonga/tester.rb    2012-03-09 15:27:07 +0900 (6b54e1d)
+++ lib/groonga/tester.rb    2012-03-09 17:14:49 +0900 (1267f4a)
@@ -555,6 +555,7 @@ module Groonga
         @output = STDOUT
         @n_tests = 0
         @n_passed_tests = 0
+        @n_not_checked_tests = 0
         @failed_tests = []
       end
 
@@ -583,6 +584,7 @@ module Groonga
       def no_check_test(result)
         report_test_result("not checked")
         puts(result)
+        @n_not_checked_tests += 1
       end
 
       def finish_test
@@ -593,7 +595,8 @@ module Groonga
         puts
         puts("#{@n_tests} tests, " +
              "#{@n_passed_tests} passes, " +
-             "#{@failed_tests.size} failures.")
+             "#{@failed_tests.size} failures, " +
+             "#{@n_not_checked_tests} not checked tests.")
         if @n_tests.zero?
           pass_ratio = 0
         else




Groonga-commit メーリングリストの案内
Back to archive index