Overview
-
module Sus-
class AssertionsRepresents a collection of test assertions and their results. Tracks passed, failed, skipped, and errored assertions.
-
class AssertRepresents a single assertion result.
-
class ErrorRepresents an error that occurred during test execution.
-
class BaseRepresents the base test case class. Provides core functionality for test execution including hooks for setup and teardown.
-
class BeRepresents a predicate matcher that can be used with
expect(...).to be(...).-
class AndRepresents a logical AND combination of multiple predicates.
-
class OrRepresents a logical OR combination of multiple predicates.
-
class << self
-
-
module BeTruthyRepresents a predicate that checks if the subject is truthy.
-
module BeFalseyRepresents a predicate that checks if the subject is falsey.
-
class BeWithinRepresents a predicate that checks if the subject is within a tolerance of a value.
-
class BoundedRepresents a bounded range check.
-
-
class ClockRepresents a clock for measuring elapsed time during test execution.
-
class ConfigRepresents the configuration for running tests.
-
module ContextRepresents a test context that can contain nested tests and other contexts.
-
module DescribeRepresents a test group that describes a subject (class, module, or feature).
-
class ExpectRepresents an expectation that can be used with predicates to make assertions.
-
module FileRepresents a test file that can be loaded and executed.
-
class FileLoadErrorRepresents an error that occurred while loading a test file.
-
class FilterProvides a way to filter the registry according to the suffix on loaded paths.
-
class IndexRepresents an index of contexts by their identity keys.
-
-
module Fixtures-
module TemporaryDirectoryContextProvides a temporary directory context for tests that need isolated file system access.
-
-
module HaveRepresents predicates for checking collections and object attributes.
-
class AllRepresents a predicate that checks if the subject matches all of the given predicates.
-
class AnyRepresents a predicate that checks if the subject matches any of the given predicates.
-
class KeyRepresents a predicate that checks if a hash has a specific key.
-
class AttributeRepresents a predicate that checks if an object has a specific attribute.
-
class ValueRepresents a predicate that checks if a collection has a value matching a predicate.
-
-
class HaveDurationRepresents a predicate that measures the duration of a block execution.
-
class IdentityRepresents a unique identity for a test or context, used for identification and location tracking.
-
module Integrations -
module ItRepresents an individual test case.
-
module ItBehavesLikeRepresents a test context that behaves like a shared context.
-
class MockRepresents a mock object that can intercept and replace method calls on a target object.
-
module MocksProvides mock management functionality for test cases.
-
module OutputRepresents output handlers for test results and messages.
-
class BacktraceRepresents a backtrace for displaying error locations.
-
class BarRepresents a progress bar for displaying test execution progress.
-
class BufferedRepresents a buffered output handler that stores output operations for later replay.
-
class LinesRepresents a line buffer for managing multiple lines of output on a terminal.
-
module MessagesProvides message formatting methods for output handlers.
-
class NullRepresents a null output handler that discards all output.
-
class ProgressRepresents a progress tracker for test execution.
-
class StatusRepresents a status indicator for test execution.
-
class StructuredRepresents a structured JSON output handler for machine-readable output.
-
class TextRepresents a plain text output handler without color support.
-
module VariableProvides a compact, truncated representation of values for output.
-
class FormatterWalks a value and emits styled tokens to an output, aborting once the
-
class TruncatedRaised internally to abort formatting once the limit is reached.
-
-
class XTermRepresents an XTerm-compatible output handler with color and style support.
-
-
class RaiseExceptionRepresents a predicate that checks if a block raises an exception.
-
class ReceiveRepresents an expectation that a method will be called on an object.
-
class WithArgumentsRepresents a constraint on method call arguments.
-
class WithOptionsRepresents a constraint on method call keyword options.
-
class WithBlockRepresents a constraint on method call block argument.
-
class TimesRepresents a constraint on method call count.
-
class RegistryRepresents a registry of test files and contexts.
-
class RespondToRepresents a predicate that checks if an object responds to a method.
-
class WithParametersRepresents a constraint on method parameters.
-
class WithOptionsRepresents a constraint on method keyword options.
-
-
module SharedRepresents a shared test context that can be reused across multiple test files.
-
class TreeRepresents a tree structure of test contexts.
-
module WithRepresents a test context with specific conditions or variables.
-
-
class SyntaxErrorExtension to SyntaxError to extract line numbers from error messages.