Class

TestSuite

Extends:

A collection of tests which can be #run.

Note: It is easy to confuse a TestSuite instance with something that has a static suite method; I know because I have trouble keeping them straight. Think of something that has a suite method as simply providing a way to get a meaningful TestSuite instance.

Constants
FINISHED
STARTED
Public Attributes
name
tests
Public Methods
<< Adds the test to the suite.
== It’s handy to be able to compare TestSuite instances.
delete
empty?
new Creates a new TestSuite with the given name.
run Runs the tests and/or suites contained in this TestSuite.
size Retuns the rolled up number of tests in this suite; i.e. if the suite contains other suites, it counts the tests within those suites, not the suites themselves.
to_s Overridden to return the name given the suite at creation.
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.