aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/test/test_command.rb
blob: 395edca933bd70a54212f38a69fc8b5f7fc123ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require "rails/command"
require "rails/test_unit/minitest_plugin"

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")

        exit Minitest.run(ARGV)
      end
    end
  end
end