Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > test/unit/testsuiteライブラリ > Test::Unit::TestSuiteクラス

class Test::Unit::TestSuite

クラスの継承リスト: Test::Unit::TestSuite < Object < Kernel

要約

複数のテストをひとつにまとめたクラスです。TestSuite 同士をまとめてひとつの TestSuite にすることもできます。 Test::Unit::TestSuite#run によりまとめたテストを一度に 実行することができます。テストは TestSuite へ加えられた順に実行されます。 自身が TestSuite を含んでいる場合は、再帰的にテストを実行します。

特異メソッド

定義 説明
new(name = "Unnamed TestSuite") -> Test::Unit::TestSuite

TestSuite のインスタンスを生成して返します。

インスタンスメソッド

定義 説明
self << test -> self

自身にテストを加えます。self を返します。

self == other -> bool

It's handy to be able to compare TestSuite instances.

delete(test) -> ()

test と等しいもの全てを自身から削除します。test と等しい要素が見つかった場合は、testを返します。 test と等しいものがなければ nil を返します

empty? -> bool

実行すべきテストが空なら true を返します。そうでないなら false を返します。

name -> String
run(result) {|STARTED, name| ...} -> ()

このメソッドをユーザが直接呼ぶことはありません。

size -> Integer

実行するテストの総数を返します。 もし自身が他の TestSuite を含んでいる場合は、その TestSuite が 持っているテストを再帰的に合計した数を返します。

tests -> [ Test::Unit::TestSuite | Test::Unit::TestCase ]
to_s -> String

Overridden to return the name given the suite at creation.

継承したメソッド

=== =~ __id__ __send__ _dump class clone dclone display enum_for eql? equal? extend freeze frozen? hash initialize initialize_copy inspect instance_eval instance_exec instance_of? instance_variable_defined? instance_variable_get instance_variable_set instance_variables is_a? marshal_dump marshal_load method method_missing methods nil? pretty_inspect pretty_print pretty_print_cycle pretty_print_inspect pretty_print_instance_variables private_methods protected_methods public_methods remove_instance_variable respond_to? singleton_method_added singleton_method_removed singleton_method_undefined singleton_methods taint tainted? tap to_a to_ary to_hash to_int to_io to_proc to_regexp to_str to_yaml to_yaml_properties to_yaml_style untaint