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§
- Mock
Http - Mock HTTP client for testing.
- Mock
Http Builder - Builder for MockHttp.
- Mock
Request - Mock HTTP request.
- Mock
Response - Mock HTTP response.
- Test
Config - Test configuration.
- Test
Context - Test context for integration tests.
- Test
Context Builder - 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.