Class: DuckTest::FrameWork::TestUnit::FrameWork
- Defined in:
- lib/duck_test/frame_work/test_unit/frame_work.rb
Overview
FrameWork for running Test::Unit tests
Instance Attribute Summary
Attributes inherited from Base
#listener, #name, #post_load, #post_run, #pre_load, #pre_run, #queue
Instance Method Summary collapse
-
#run_tests ⇒ Object
Does the work of actually running the tests.
Methods inherited from Base
#clear_constants, #clear_tests, #info, #initialize, #list_stats, #listener_event, #load_files_from_disk, #loadable?, ok_to_run, ok_to_run=, #queue_event, #run_all, #run_fork, #run_manually, #set_latency, #set_listener_speed, #set_queue_speed, #shutdown, #start, #startup, #stop, #toggle_autorun
Methods included from LoggerHelper
Methods included from FileManager
#add_to_list, #black_list, #black_listed?, #build_watch_lists, #find_file_object_parent, #find_runnable_files, #non_loadable_history, #non_loadable_history=, #non_runnable_history, #non_runnable_history=, #process_file_list, #runnable_history, #runnable_history=, #split_file_spec, #verify_parent_directory_nodes, #watch_configs, #watch_file_spec, #watchable?, #white_list, #white_listed?
Methods included from Platforms::OSHelpers
#available?, #current_os, #is_linux?, #is_mac?, #is_windows?
Methods included from ConfigHelper
#autorun, #autorun=, #autorun?, #autorun_status, #root, #root=, #runnable_basedir, #runnable_basedir=, #watch_basedir, #watch_basedir=
Constructor Details
This class inherits a constructor from DuckTest::FrameWork::Base
Instance Method Details
#run_tests ⇒ Object
Does the work of actually running the tests.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/duck_test/frame_work/test_unit/frame_work.rb', line 11 def run_tests if defined?(::Test::Unit::Runner) ducklog.console "Running tests using: Test::Unit::Runner" ::Test::Unit::Runner.new.run([]) elsif defined?(::MiniTest::Unit) ducklog.console "Running tests using: MiniTest::Unit" ::MiniTest::Unit.new.run([]) else ducklog.console "Cannot run tests. Unable to determine which test runner to use." end print ::IRB.CurrentContext.io.prompt end |