Module testing

Module testing 

Source
Expand description

Testing utilities for FORGE applications.

Provides TestContext for integration tests, mocking utilities, and test cluster support.

Macros§

assert_err
Assert that a result is Err.
assert_err_variant
Assert that an error matches a specific variant.
assert_job_dispatched
Assert that a job was dispatched.
assert_ok
Assert that a result is Ok.
assert_workflow_started
Assert that a workflow was started.

Structs§

MockHttp
Mock HTTP client for testing.
MockHttpBuilder
Builder for MockHttp.
MockRequest
Mock HTTP request.
MockResponse
Mock HTTP response.
TestConfig
Test configuration.
TestContext
Test context for integration tests.
TestContextBuilder
Builder for TestContext.

Constants§

DEFAULT_JOB_TIMEOUT
Default job test timeout.
DEFAULT_TEST_TIMEOUT
Default test timeout.
DEFAULT_WORKFLOW_TIMEOUT
Default workflow test timeout.

Functions§

assert_job_status
Assert helper for job status.
assert_json_matches
Assert that a value matches a JSON pattern.
assert_workflow_status
Assert helper for workflow status.
error_contains
Check if an error message contains a substring.
validation_error_for_field
Check if a validation error contains specific field.