提交 2b4a9735 编写于 作者: Y Yves Senn

update bin/test scripts to prevent double runs.

The test runner was updated to make use of autorun. This caused the
`bin/test` scripts to run Minitest twice.
上级 bb2a832b
......@@ -2,5 +2,3 @@
COMPONENT_ROOT = File.expand_path("..", __dir__)
require File.expand_path("../tools/test", COMPONENT_ROOT)
exit Minitest.run(ARGV)
......@@ -2,5 +2,3 @@
COMPONENT_ROOT = File.expand_path("..", __dir__)
require File.expand_path("../tools/test", COMPONENT_ROOT)
exit Minitest.run(ARGV)
......@@ -2,5 +2,3 @@
COMPONENT_ROOT = File.expand_path("..", __dir__)
require File.expand_path("../tools/test", COMPONENT_ROOT)
exit Minitest.run(ARGV)
......@@ -2,5 +2,3 @@
COMPONENT_ROOT = File.expand_path("..", __dir__)
require File.expand_path("../tools/test", COMPONENT_ROOT)
exit Minitest.run(ARGV)
......@@ -17,5 +17,3 @@ module Minitest
end
Minitest.extensions.unshift "active_record"
exit Minitest.run(ARGV)
......@@ -2,5 +2,3 @@
COMPONENT_ROOT = File.expand_path("..", __dir__)
require File.expand_path("../tools/test", COMPONENT_ROOT)
exit Minitest.run(ARGV)
......@@ -13,3 +13,5 @@ def self.root
end
Rails::TestUnitReporter.executable = "bin/test"
Minitest.run_via[:rails] = true
require "active_support/testing/autorun"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册