Skip to main content

Module testing

Module testing 

Source
Expand description

Shared test fixtures for backend tests. Shared test fixtures for iac-forge backends.

Use these helpers in backend tests to avoid duplicating test data construction.

Modules§

fixtures
Sexpr-based test fixtures for backends and cross-repo tests.

Structs§

TestAttributeBuilder
Builder for constructing test IacAttribute values with sensible defaults.

Functions§

test_data_source
Create a test data source with typical fields.
test_provider
Create a minimal test provider.
test_resource
Create a test resource with typical fields (string required+immutable, string sensitive, list optional).
test_resource_with_type
Create a test resource with a single attribute of a given type.