forked from rails/rails
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 rails#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.
- Loading branch information
Showing
6 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env ruby | ||
COMPONENT_ROOT = File.expand_path("../../", __FILE__) | ||
require File.expand_path("../tools/test", COMPONENT_ROOT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env ruby | ||
COMPONENT_ROOT = File.expand_path("../../", __FILE__) | ||
require File.expand_path("../tools/test", COMPONENT_ROOT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env ruby | ||
COMPONENT_ROOT = File.expand_path("../../", __FILE__) | ||
require File.expand_path("../tools/test", COMPONENT_ROOT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env ruby | ||
COMPONENT_ROOT = File.expand_path("../../", __FILE__) | ||
require File.expand_path("../tools/test", COMPONENT_ROOT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env ruby | ||
COMPONENT_ROOT = File.expand_path("../../", __FILE__) | ||
require File.expand_path("../tools/test", COMPONENT_ROOT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |