提交 54d84cbb 编写于 作者: Y Yves Senn

use our runner (`bin/test`) for framework components.

This adds a script `bin/test` to most Rails framework components. The
script uses the rails minitest plugin to augment the runner.
See https://github.com/rails/rails/pull/19571 for details about the
plugin.

I did not yet add `bin/test` for activerecord, activejob and railties.
These components rely on specific setup performed in the rake-tasks.
上级 eec93270
#!/usr/bin/env ruby
COMPONENT_ROOT = File.expand_path("../../", __FILE__)
require File.expand_path("../tools/test", COMPONENT_ROOT)
#!/usr/bin/env ruby
COMPONENT_ROOT = File.expand_path("../../", __FILE__)
require File.expand_path("../tools/test", COMPONENT_ROOT)
#!/usr/bin/env ruby
COMPONENT_ROOT = File.expand_path("../../", __FILE__)
require File.expand_path("../tools/test", COMPONENT_ROOT)
#!/usr/bin/env ruby
COMPONENT_ROOT = File.expand_path("../../", __FILE__)
require File.expand_path("../tools/test", COMPONENT_ROOT)
#!/usr/bin/env ruby
COMPONENT_ROOT = File.expand_path("../../", __FILE__)
require File.expand_path("../tools/test", COMPONENT_ROOT)
$: << File.expand_path("test", COMPONENT_ROOT)
require File.expand_path("../../load_paths", __FILE__)
require "rails/test_unit/minitest_plugin"
module Rails
# Necessary to get rerun-snippts working.
def self.root
@root ||= Pathname.new(COMPONENT_ROOT)
end
end
exit Minitest.run(ARGV)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册