Module: Expresenter
- Defined in:
- lib/expresenter.rb,
lib/expresenter/fail.rb,
lib/expresenter/pass.rb,
lib/expresenter/common.rb
Overview
Namespace for the Expresenter library.
The Expresenter library provides a flexible way to present test expectation results with rich formatting and requirement level support. It is designed to work with test frameworks and assertion libraries that need detailed result reporting.
Each expectation result can be categorized as:
-
Success: The test passed as expected
-
Warning: A non-critical test failure (typically for :SHOULD or :MAY requirements)
-
Info: Additional information about the test
-
Failure: A critical test failure
-
Error: An unexpected error occurred during the test
Defined Under Namespace
Modules: Common Classes: Fail, Pass
Class Method Summary collapse
-
.call(is_passed) ⇒ Class<Pass>, Class<Fail>
Factory method that returns the appropriate result class based on the assertion outcome.