Class: MightyTest::MinitestRunner
- Inherits:
-
Object
- Object
- MightyTest::MinitestRunner
- Defined in:
- lib/mighty_test/minitest_runner.rb
Instance Method Summary collapse
Instance Method Details
#print_help_and_exit! ⇒ Object
3 4 5 6 7 |
# File 'lib/mighty_test/minitest_runner.rb', line 3 def print_help_and_exit! require "minitest" Minitest.run(["--help"]) exit end |
#run_inline_and_exit!(*test_files, args: []) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/mighty_test/minitest_runner.rb', line 9 def run_inline_and_exit!(*test_files, args: []) $LOAD_PATH.unshift "test" ARGV.replace(Array(args)) require "minitest" require "minitest/focus" require "minitest/rg" test_files.flatten.each { |file| require File.(file.to_s) } require "minitest/autorun" exit end |