blob: e97b9cbbbad51bdc9940595ad6f084875b5bd2b4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
require "rails/command"
require "rails/test_unit/minitest_plugin"
require "rails/test_unit/line_filtering"
module Rails
module Command
class TestCommand < Base
def help # :nodoc:
perform # Hand over help printing to minitest.
end
def perform(*)
$LOAD_PATH << Rails::Command.root.join("test")
# Add test line filtering support for running test by line number
# via the command line.
ActiveSupport::TestCase.extend Rails::LineFiltering
Minitest.run_via[:rails] = true
require "active_support/testing/autorun"
end
end
end
end
|