Table of Contents - test-unit-2.5.2 Documentation
Classes/Modules
Test
Test::Unit
Test::Unit - Ruby Unit Testing Framework
Introduction
Notes
Feedback
Contact Information
Credits
License
Warranty
Author
Usage
Assertions
Test Method & Test Fixture
Test Runners
Test Suite
Configuration file
Questions?
Test::Unit::AssertionFailedError
Test::Unit::Assertions
Example Custom Assertion
Test::Unit::Attribute
Test::Unit::Attribute::BaseClassMethods
Test::Unit::Attribute::ClassMethods
Test::Unit::Attribute::StringifyKeyHash
Test::Unit::AutoRunner
Test::Unit::CodeSnippetFetcher
Test::Unit::Collector
Test::Unit::Collector::Descendant
Test::Unit::Collector::Dir
Test::Unit::Collector::Load
Test::Unit::Collector::ObjectSpace
Test::Unit::Collector::XML
Test::Unit::Collector::XML::Listener
Test::Unit::Color
Test::Unit::Color::Error
Test::Unit::Color::ParseError
Test::Unit::ColorScheme
Test::Unit::Data
Test::Unit::Data::ClassMethods
Test::Unit::Data::ClassMethods::CSVDataLoader
Test::Unit::Diff
Test::Unit::Diff::Differ
Test::Unit::Diff::ReadableDiffer
Test::Unit::Diff::SequenceMatcher
Test::Unit::Diff::UTF8Line
Test::Unit::Diff::UnifiedDiffer
Test::Unit::Error
Test::Unit::ErrorHandler
Test::Unit::ExceptionHandler
Test::Unit::ExceptionHandler::ClassMethods
Test::Unit::Failure
Test::Unit::FailureHandler
Test::Unit::FaultLocationDetector
Test::Unit::Fixture
Test::Unit::Fixture::ClassMethods
Test::Unit::MixColor
Test::Unit::Notification
Test::Unit::NotificationHandler
Test::Unit::NotifiedError
Test::Unit::NullResultContainerInitializer
Test::Unit::Omission
Test::Unit::OmissionHandler
Test::Unit::OmittedError
Test::Unit::PendedError
Test::Unit::Pending
Test::Unit::PendingHandler
Test::Unit::Priority
Test::Unit::Priority::Checker
Test::Unit::Priority::ClassMethods
Test::Unit::TestCase
Test::Unit::TestCase::InternalData
Test::Unit::TestCaseNotificationSupport
Test::Unit::TestCaseOmissionSupport
Test::Unit::TestCasePendingSupport
Test::Unit::TestResult
Test::Unit::TestResultErrorSupport
Test::Unit::TestResultFailureSupport
Test::Unit::TestResultNotificationSupport
Test::Unit::TestResultOmissionSupport
Test::Unit::TestResultPendingSupport
Test::Unit::TestSuite
Test::Unit::UI
Test::Unit::UI::Console
Test::Unit::UI::Console::ColorizedReadableDiffer
Test::Unit::UI::Console::OutputLevel
Test::Unit::UI::Console::TestRunner
Test::Unit::UI::Emacs
Test::Unit::UI::Emacs::TestRunner
Test::Unit::UI::TestRunner
Test::Unit::UI::TestRunnerMediator
Test::Unit::UI::TestRunnerUtilities
Test::Unit::UI::XML
Test::Unit::UI::XML::TestRunner
Test::Unit::Util
Test::Unit::Util::BacktraceFilter
Test::Unit::Util::MethodOwnerFinder
Test::Unit::Util::Observable
Test::Unit::Util::Output
Test::Unit::Util::ProcWrapper
Object
Methods
::[] — Test::Unit::ColorScheme
::[]= — Test::Unit::ColorScheme
::all — Test::Unit::ColorScheme
::at_exit — Test::Unit
::at_start — Test::Unit
::available_colors — Test::Unit::ColorScheme
::available_priorities — Test::Unit::Priority::Checker
::available_values — Test::Unit::Priority
::collector — Test::Unit::AutoRunner
::default — Test::Unit::ColorScheme
::default — Test::Unit::Priority
::default= — Test::Unit::Priority
::default_for_256_colors — Test::Unit::ColorScheme
::default_for_8_colors — Test::Unit::ColorScheme
::default_runner — Test::Unit::AutoRunner
::default_runner= — Test::Unit::AutoRunner
::description — Test::Unit::TestCase
::disable — Test::Unit::Priority
::enable — Test::Unit::Priority
::enabled? — Test::Unit::Priority
::exception_handlers — Test::Unit::ExceptionHandler
::have_priority? — Test::Unit::Priority::Checker
::included — Test::Unit::Fixture
::included — Test::Unit::Data
::included — Test::Unit::OmissionHandler
::included — Test::Unit::Attribute
::included — Test::Unit::FailureHandler
::included — Test::Unit::TestCasePendingSupport
::included — Test::Unit::Priority
::included — Test::Unit::ExceptionHandler
::included — Test::Unit::ErrorHandler
::included — Test::Unit::PendingHandler
::included — Test::Unit::NotificationHandler
::included — Test::Unit::TestCaseOmissionSupport
::included — Test::Unit::TestCaseNotificationSupport
::need_auto_run= — Test::Unit::AutoRunner
::need_auto_run? — Test::Unit::AutoRunner
::need_to_run? — Test::Unit::Priority::Checker
::new — Test::Unit::UI::TestRunnerMediator
::new — Test::Unit::Diff::SequenceMatcher
::new — Test::Unit::Pending
::new — Test::Unit::UI::TestRunner
::new — Test::Unit::CodeSnippetFetcher
::new — Test::Unit::Collector::Load
::new — Test::Unit::Error
::new — Test::Unit::Collector::ObjectSpace
::new — Test::Unit::Omission
::new — Test::Unit::UI::Console::TestRunner
::new — Test::Unit::UI::Console::ColorizedReadableDiffer
::new — Test::Unit::FaultLocationDetector
::new — Test::Unit::Failure
::new — Test::Unit::Data::ClassMethods::CSVDataLoader
::new — Test::Unit::Collector::Dir
::new — Test::Unit::MixColor
::new — Test::Unit::UI::XML::TestRunner
::new — Test::Unit::Diff::Differ
::new — Test::Unit::Diff::UTF8Line
::new — Test::Unit::Collector::XML::Listener
::new — Test::Unit::Priority::Checker
::new — Test::Unit::TestCase
::new — Test::Unit::Color
::new — Test::Unit::Collector
::new — Test::Unit::Notification
::new — Test::Unit::TestSuite
::new — Test::Unit::TestCase::InternalData
::new — Test::Unit::TestResult
::new — Test::Unit::AssertionFailedError
::new — Test::Unit::AutoRunner
::new — Test::Unit::Util::ProcWrapper
::new — Test::Unit::ColorScheme
::parse_256_color — Test::Unit::Color
::prepare — Test::Unit::AutoRunner
::register_collector — Test::Unit::AutoRunner
::register_color_scheme — Test::Unit::AutoRunner
::register_runner — Test::Unit::AutoRunner
::run — Test::Unit::AutoRunner
::run= — Test::Unit
::run? — Test::Unit
::run_at_exit_hooks — Test::Unit
::run_at_start_hooks — Test::Unit
::run_priority_high? — Test::Unit::Priority::Checker
::run_priority_important? — Test::Unit::Priority::Checker
::run_priority_low? — Test::Unit::Priority::Checker
::run_priority_must? — Test::Unit::Priority::Checker
::run_priority_never? — Test::Unit::Priority::Checker
::run_priority_normal? — Test::Unit::Priority::Checker
::runner — Test::Unit::AutoRunner
::setup_option — Test::Unit::AutoRunner
::shutdown — Test::Unit::TestCase
::standalone? — Test::Unit::AutoRunner
::startup — Test::Unit::TestCase
::stringify — Test::Unit::Attribute::StringifyKeyHash
::sub_test_case — Test::Unit::TestCase
::suite — Test::Unit::TestCase
::test — Test::Unit::TestCase
::test_defined? — Test::Unit::TestCase
::test_order — Test::Unit::TestCase
::test_order= — Test::Unit::TestCase
::use_pp= — Test::Unit::Assertions
::wide_character? — Test::Unit::Diff::UTF8Line
#+ — Test::Unit::MixColor
#+ — Test::Unit::Color
#<< — Test::Unit::TestSuite
#== — Test::Unit::Util::ProcWrapper
#== — Test::Unit::Color
#== — Test::Unit::TestSuite
#== — Test::Unit::TestCase
#== — Test::Unit::MixColor
#[] — Test::Unit::Attribute
#[] — Test::Unit::Attribute::StringifyKeyHash
#[] — Test::Unit::ColorScheme
#[] — Test::Unit::Diff::UTF8Line
#[]= — Test::Unit::Attribute::StringifyKeyHash
#[]= — Test::Unit::ColorScheme
#add_assertion — Test::Unit::Assertions
#add_assertion — Test::Unit::TestResult
#add_error — Test::Unit::TestResultErrorSupport
#add_failure — Test::Unit::TestResultFailureSupport
#add_failure — Test::Unit::FailureHandler
#add_listener — Test::Unit::Util::Observable
#add_notification — Test::Unit::TestResultNotificationSupport
#add_omission — Test::Unit::TestResultOmissionSupport
#add_pass — Test::Unit::TestResult
#add_pass — Test::Unit::TestCase
#add_pending — Test::Unit::TestResultPendingSupport
#add_run — Test::Unit::TestResult
#add_suite — Test::Unit::Collector
#add_test_cases — Test::Unit::Collector
#after_cleanup_callbacks — Test::Unit::Fixture::ClassMethods
#after_setup_callbacks — Test::Unit::Fixture::ClassMethods
#after_teardown_callbacks — Test::Unit::Fixture::ClassMethods
#assert — Test::Unit::Assertions
#assert_alias_method — Test::Unit::Assertions
#assert_block — Test::Unit::Assertions
#assert_boolean — Test::Unit::Assertions
#assert_compare — Test::Unit::Assertions
#assert_const_defined — Test::Unit::Assertions
#assert_empty — Test::Unit::Assertions
#assert_equal — Test::Unit::Assertions
#assert_fail_assertion — Test::Unit::Assertions
#assert_false — Test::Unit::Assertions
#assert_in_delta — Test::Unit::Assertions
#assert_in_epsilon — Test::Unit::Assertions
#assert_include — Test::Unit::Assertions
#assert_instance_of — Test::Unit::Assertions
#assert_kind_of — Test::Unit::Assertions
#assert_match — Test::Unit::Assertions
#assert_nil — Test::Unit::Assertions
#assert_no_match — Test::Unit::Assertions
#assert_not_const_defined — Test::Unit::Assertions
#assert_not_empty — Test::Unit::Assertions
#assert_not_equal — Test::Unit::Assertions
#assert_not_in_delta — Test::Unit::Assertions
#assert_not_in_epsilon — Test::Unit::Assertions
#assert_not_include — Test::Unit::Assertions
#assert_not_match — Test::Unit::Assertions
#assert_not_nil — Test::Unit::Assertions
#assert_not_predicate — Test::Unit::Assertions
#assert_not_respond_to — Test::Unit::Assertions
#assert_not_same — Test::Unit::Assertions
#assert_not_send — Test::Unit::Assertions
#assert_nothing_raised — Test::Unit::Assertions
#assert_nothing_thrown — Test::Unit::Assertions
#assert_operator — Test::Unit::Assertions
#assert_path_exist — Test::Unit::Assertions
#assert_path_not_exist — Test::Unit::Assertions
#assert_predicate — Test::Unit::Assertions
#assert_raise — Test::Unit::Assertions
#assert_raise_kind_of — Test::Unit::Assertions
#assert_raise_message — Test::Unit::Assertions
#assert_raises — Test::Unit::Assertions
#assert_respond_to — Test::Unit::Assertions
#assert_same — Test::Unit::Assertions
#assert_send — Test::Unit::Assertions
#assert_throw — Test::Unit::Assertions
#assert_throws — Test::Unit::Assertions
#assert_true — Test::Unit::Assertions
#assign_test_data — Test::Unit::TestCase::InternalData
#attribute — Test::Unit::Attribute::ClassMethods
#attribute_observers — Test::Unit::Attribute::ClassMethods
#attributes — Test::Unit::Attribute::ClassMethods
#attributes — Test::Unit::Attribute
#attributes_table — Test::Unit::Attribute::BaseClassMethods
#attributes_table — Test::Unit::Attribute::ClassMethods
#background? — Test::Unit::Color
#backtrace — Test::Unit::Error
#base= — Test::Unit::Collector::Load
#before_cleanup_callbacks — Test::Unit::Fixture::ClassMethods
#before_setup_callbacks — Test::Unit::Fixture::ClassMethods
#before_teardown_callbacks — Test::Unit::Fixture::ClassMethods
#blocks — Test::Unit::Diff::SequenceMatcher
#bold? — Test::Unit::Color
#build_message — Test::Unit::Assertions
#capture_output — Test::Unit::Util::Output
#cleanup — Test::Unit::TestCase
#cleanup — Test::Unit::Fixture::ClassMethods
#collect — Test::Unit::Collector::ObjectSpace
#collect — Test::Unit::Collector::Descendant
#collect — Test::Unit::Collector::XML
#collect — Test::Unit::Collector::Dir
#collect — Test::Unit::Collector::Load
#collect_file — Test::Unit::Collector::Dir
#compute_width — Test::Unit::Diff::UTF8Line
#critical? — Test::Unit::Failure
#critical? — Test::Unit::Omission
#critical? — Test::Unit::Error
#critical? — Test::Unit::Notification
#critical? — Test::Unit::Pending
#current_attribute — Test::Unit::Attribute::ClassMethods
#current_attributes — Test::Unit::Attribute::ClassMethods
#data — Test::Unit::Data::ClassMethods
#data_label — Test::Unit::TestCase
#default_test — Test::Unit::TestCase
#delete — Test::Unit::TestSuite
#description — Test::Unit::TestCase
#diff — Test::Unit::Diff::ReadableDiffer
#diff — Test::Unit::Diff
#diff — Test::Unit::Diff::UnifiedDiffer
#diff — Test::Unit::Failure
#each — Test::Unit::Diff::UTF8Line
#each — Test::Unit::ColorScheme
#elapsed_time — Test::Unit::TestCase
#empty? — Test::Unit::TestSuite
#eql? — Test::Unit::Util::ProcWrapper
#error_count — Test::Unit::TestResultErrorSupport
#error_occurred? — Test::Unit::TestResultErrorSupport
#escape_sequence — Test::Unit::Color
#escape_sequence — Test::Unit::MixColor
#exception_handler — Test::Unit::ExceptionHandler::ClassMethods
#exception_handlers — Test::Unit::ExceptionHandler::ClassMethods
#failure_count — Test::Unit::TestResultFailureSupport
#failure_occurred? — Test::Unit::TestResultFailureSupport
#fetch — Test::Unit::CodeSnippetFetcher
#filter= — Test::Unit::Collector
#filter_backtrace — Test::Unit::Util::BacktraceFilter
#find — Test::Unit::Util::MethodOwnerFinder
#find_test_cases — Test::Unit::Collector::Dir
#find_test_cases — Test::Unit::Collector::Load
#flunk — Test::Unit::Assertions
#fold — Test::Unit::Diff
#folded_readable — Test::Unit::Diff
#foreground? — Test::Unit::Color
#grouped_operations — Test::Unit::Diff::SequenceMatcher
#hash — Test::Unit::Util::ProcWrapper
#have_test_data? — Test::Unit::TestCase::InternalData
#include? — Test::Unit::Collector
#intensity? — Test::Unit::Color
#interrupted — Test::Unit::TestCase::InternalData
#interrupted? — Test::Unit::TestCase
#interrupted? — Test::Unit::TestCase::InternalData
#italic? — Test::Unit::Color
#keyword_display — Test::Unit::AutoRunner
#label — Test::Unit::Failure
#label — Test::Unit::Pending
#label — Test::Unit::Omission
#label — Test::Unit::Error
#label — Test::Unit::Notification
#load — Test::Unit::Data::ClassMethods::CSVDataLoader
#load_config — Test::Unit::AutoRunner
#load_data — Test::Unit::Data::ClassMethods
#location — Test::Unit::Error
#long_display — Test::Unit::Omission
#long_display — Test::Unit::Pending
#long_display — Test::Unit::Error
#long_display — Test::Unit::Notification
#long_display — Test::Unit::Failure
#longest_match — Test::Unit::Diff::SequenceMatcher
#message — Test::Unit::Error
#method_added — Test::Unit::Attribute::ClassMethods
#name — Test::Unit::TestCase
#need_diff? — Test::Unit::UI::Console::ColorizedReadableDiffer
#need_fold? — Test::Unit::Diff
#need_to_run? — Test::Unit::Priority::Checker
#notification_count — Test::Unit::TestResultNotificationSupport
#notify — Test::Unit::TestCaseNotificationSupport
#notify_listeners — Test::Unit::Util::Observable
#omission_count — Test::Unit::TestResultOmissionSupport
#omit — Test::Unit::TestCaseOmissionSupport
#omit_if — Test::Unit::TestCaseOmissionSupport
#omit_unless — Test::Unit::TestCaseOmissionSupport
#operations — Test::Unit::Diff::SequenceMatcher
#options — Test::Unit::AutoRunner
#pass_percentage — Test::Unit::TestResult
#passed? — Test::Unit::TestCase
#passed? — Test::Unit::TestSuite
#passed? — Test::Unit::TestResult
#passed? — Test::Unit::TestCase::InternalData
#pend — Test::Unit::TestCasePendingSupport
#pending_count — Test::Unit::TestResultPendingSupport
#prepare — Test::Unit::AutoRunner
#priority — Test::Unit::Priority::ClassMethods
#priority_setup — Test::Unit::Priority
#priority_teardown — Test::Unit::Priority
#problem_occurred — Test::Unit::TestCase::InternalData
#problem_occurred — Test::Unit::TestCase
#process_args — Test::Unit::AutoRunner
#ratio — Test::Unit::Diff::SequenceMatcher
#readable — Test::Unit::Diff
#realdir — Test::Unit::Collector::Dir
#recursive_collect — Test::Unit::Collector::Dir
#register_attribute_observer — Test::Unit::Attribute::ClassMethods
#register_cleanup_callback — Test::Unit::Fixture::ClassMethods
#register_setup_callback — Test::Unit::Fixture::ClassMethods
#register_teardown_callback — Test::Unit::Fixture::ClassMethods
#remove_listener — Test::Unit::Util::Observable
#run — Object
#run — Test::Unit::UI::TestRunnerMediator
#run — Test::Unit::UI::TestRunnerUtilities
#run — Test::Unit::TestSuite
#run — Test::Unit::TestCase
#run — Test::Unit::AutoRunner
#run_suite — Test::Unit::UI::TestRunnerMediator
#sequence — Test::Unit::MixColor
#sequence — Test::Unit::Color
#set_attributes — Test::Unit::Attribute::ClassMethods
#setup — Test::Unit::Fixture::ClassMethods
#setup — Test::Unit::Priority::Checker
#setup — Test::Unit::TestCase
#short_display — Test::Unit::Pending
#short_display — Test::Unit::Omission
#short_display — Test::Unit::Notification
#short_display — Test::Unit::Error
#short_display — Test::Unit::Failure
#single_character_display — Test::Unit::Pending
#single_character_display — Test::Unit::Failure
#single_character_display — Test::Unit::Error
#single_character_display — Test::Unit::Notification
#single_character_display — Test::Unit::Omission
#size — Test::Unit::TestSuite
#size — Test::Unit::Diff::UTF8Line
#size — Test::Unit::TestCase
#sort — Test::Unit::Collector
#source — Test::Unit::CodeSnippetFetcher
#split_backtrace_entry — Test::Unit::FaultLocationDetector
#start — Test::Unit::UI::TestRunner
#start_command_line_test — Test::Unit::UI::TestRunnerUtilities
#start_time — Test::Unit::TestCase
#status — Test::Unit::TestResult
#summary — Test::Unit::TestResult
#tag_end — Test::Unit::Collector::XML::Listener
#tag_start — Test::Unit::Collector::XML::Listener
#target? — Test::Unit::FaultLocationDetector
#teardown — Test::Unit::TestCase
#teardown — Test::Unit::Fixture::ClassMethods
#teardown — Test::Unit::Priority::Checker
#test_finished — Test::Unit::TestCase::InternalData
#test_started — Test::Unit::TestCase::InternalData
#text — Test::Unit::Collector::XML::Listener
#to_hash — Test::Unit::ColorScheme
#to_proc — Test::Unit::Util::ProcWrapper
#to_s — Test::Unit::Diff::UTF8Line
#to_s — Test::Unit::Notification
#to_s — Test::Unit::Pending
#to_s — Test::Unit::Failure
#to_s — Test::Unit::TestResult
#to_s — Test::Unit::Error
#to_s — Test::Unit::TestSuite
#to_s — Test::Unit::Omission
#to_s — Test::Unit::TestCase
#underline? — Test::Unit::Color
#unified — Test::Unit::Diff
#unregister_cleanup — Test::Unit::Fixture::ClassMethods
#unregister_cleanup_callback — Test::Unit::Fixture::ClassMethods
#unregister_exception_handler — Test::Unit::ExceptionHandler::ClassMethods
#unregister_setup — Test::Unit::Fixture::ClassMethods
#unregister_setup_callback — Test::Unit::Fixture::ClassMethods
#unregister_teardown — Test::Unit::Fixture::ClassMethods
#unregister_teardown_callback — Test::Unit::Fixture::ClassMethods