[Groonga-commit] droonga/drntest at d63353c [master] Run tests in "suite" directory by default

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Nov 27 13:13:14 JST 2013


YUKI Hiroshi	2013-11-27 13:13:14 +0900 (Wed, 27 Nov 2013)

  New Revision: d63353cf4b7f2ded525b78653612b2f2bd0422bb
  https://github.com/droonga/drntest/commit/d63353cf4b7f2ded525b78653612b2f2bd0422bb

  Message:
    Run tests in "suite" directory by default

  Modified files:
    lib/drntest/tester.rb

  Modified: lib/drntest/tester.rb (+4 -2)
===================================================================
--- lib/drntest/tester.rb    2013-11-27 13:08:12 +0900 (475d851)
+++ lib/drntest/tester.rb    2013-11-27 13:13:14 +0900 (77f0a77)
@@ -15,6 +15,7 @@
 
 require "shellwords"
 require "optparse"
+require "pathname"
 require "drntest/version"
 require "drntest/test-runner"
 require "drntest/test-suites-result"
@@ -27,6 +28,7 @@ module Drntest
         tester = new
         option_parser = create_option_parser(tester)
         targets = option_parser.parse!(argv)
+        targets << base + "suite" if targets.empty?
         tester.run(*targets)
       end
 
@@ -57,7 +59,7 @@ module Drntest
         parser.on("--base=PATH",
                   "Path to the base directory including test suite, config and fixture",
                   "(#{tester.base_path})") do |base_path|
-          tester.base_path = base_path
+          tester.base_path = Pathname(base_path)
         end
 
         parser.on("--config=NAME",
@@ -96,7 +98,7 @@ module Drntest
       @port = 24224
       @host = "localhost"
       @tag  = "droonga"
-      @base_path = File.dirname(__FILE__)
+      @base_path = Pathname(File.dirname(__FILE__))
       @config  = nil
       @fluentd = "fluentd"
       @fluentd_options = []
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index