Class: Spork::TestFramework::TestUnit
- Inherits:
-
Spork::TestFramework
- Object
- Spork::TestFramework
- Spork::TestFramework::TestUnit
- Defined in:
- lib/spork/test_framework/test_unit.rb
Constant Summary collapse
- DEFAULT_PORT =
8988
- HELPER_FILE =
"test/test_helper.rb"
Instance Method Summary collapse
Instance Method Details
#run_tests(argv, stderr, stdout) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/spork/test_framework/test_unit.rb', line 5 def run_tests(argv, stderr, stdout) Object.send(:remove_const, :STDOUT); Object.send(:const_set, :STDOUT, stdout) require 'test/unit/autorunner' r = Test::Unit::AutoRunner.new(true) exit(false) unless r.process_args(argv) r.run rescue => e puts "-"*30 puts "Error executing #{argv.join(' ')}" puts e. puts e.backtrace puts "-"*30 end |