Skip to content
trans edited this page Aug 11, 2011 · 28 revisions

Ruby Test

Welcome to Ruby Test's User Documentation. This documentation is here to elucidate the usage of Ruby Test by test framework developers and software testers alike. Fee free to participate in it's improvement.

Test Frameworks

Ruby Test is a very easy to support. For most test frameworks it takes only a small adapter file. Other test frameworks were designed to use Ruby Test from the start. Here is a list of test Frameworks currently supporting Ruby Test.

Specification

For test framework developers the complete Specification elucidates the API. A test framework can support the API directly, via modifications to its classes, or it can create an adapter that converts from the framework's structure to a set of objects that Ruby Test can handle.

Assertionless

Ruby Test supports assertionless testing. Assertionless testing means the test procedures that return false or nil are considered failures and will raise an assertion error. This allows tests to written without the use of any assertion framework. Assertion testing, on the other hand, requires the use of an assertions framework in order to make test assertions --the return value of a test procedure is simply ignored. The default mode is assertion testing. To change it, set the mode via the assertionless configuration option.

Test::Runner.assertionless = true

Note that assertions can still be used even when assertionless mode is active.

Clone this wiki locally