Ruby Test::Unit::TestCase Functions

EditRocket provides the following information on Test::Unit::TestCase functions in the Ruby source code builder.

default_test() -

name() - Returns a human-readable name for the specific test that this instance of TestCase represents.

new(test_method_name) - Creates a new instance of the fixture for running the test represented by test_method_name.

run(result) - Runs the individual test method represented by this instance of the fixture, collecting statistics, failures and errors in result.

setup() - Called before every test method runs. Can be used to set up fixture information.

size() -

suite() - Rolls up all of the test* methods in the fixture into one suite, creating a new instance of the fixture for each method.

teardown() - Called after every test method runs. Can be used to tear down fixture information.

to_s() - "Overridden to return #name."