Class: Spork::TestFramework::MiniTest
- Inherits:
-
Spork::TestFramework
- Object
- Spork::TestFramework
- Spork::TestFramework::MiniTest
- Defined in:
- lib/spork/test_framework/minitest.rb
Constant Summary collapse
- DEFAULT_PORT =
8988
- HELPER_FILE =
File.join(Dir.pwd, "test/test_helper.rb")
Instance Method Summary collapse
Instance Method Details
#parse_options(argv) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/spork/test_framework/minitest.rb', line 19 def (argv) paths, opts = argv.slice_before("--").to_a paths ||= [] opts ||= [] opts.shift [paths, opts] end |
#run_tests(argv, stderr, stdout) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/spork/test_framework/minitest.rb', line 5 def run_tests(argv, stderr, stdout) require "minitest/unit" $LOAD_PATH << "test" << "." ::MiniTest::Unit.output = stdout paths, opts = (argv) paths.each do |path| require path end ::MiniTest::Unit.new.run(opts) end |