From 54d84cbb77a7fbc6359eda4eb40cc7da29c426e1 Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Mon, 8 Jun 2015 14:53:26 +0200 Subject: 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. --- tools/test.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tools/test.rb (limited to 'tools') diff --git a/tools/test.rb b/tools/test.rb new file mode 100644 index 0000000000..1d223f99a2 --- /dev/null +++ b/tools/test.rb @@ -0,0 +1,12 @@ +$: << 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) -- cgit v1.2.3