Skip to main content

Module testing

Module testing 

Source
Expand description

Shared fixtures and fake builders for exercising aether-project in tests.

Compiled for the crate’s own tests and for any consumer that enables the testing feature. Prefer these over hand-rolling per-suite fixtures.

Structs§

TestHome
A temporary home directory whose .aether contents are set up fluently.
TestProject
A temporary project directory whose files are set up fluently.

Constants§

DEFAULT_MODEL
The model id every shared agent fixture resolves to.

Functions§

agent_config
A user-invocable AgentConfig named name whose prompt is the file PROMPT.md.
agent_json
A settings.json agent object for name and description: the DEFAULT_MODEL, user-invocable, with no prompts or MCPs.
agent_json_with
agent_json merged with extra fields, e.g. agent_json_with("planner", "Plans", json!({ "prompts": ["BASE.md"] })).
fake_spec
A minimal AgentSpec with the given name and exposure.
home
A temporary user home directory for tests that exercise AETHER_HOME lookups.
project
A temporary project directory for tests that need on-disk settings, prompts, or skills.
settings_agent
A minimal user-invocable AgentConfig as it would be parsed from settings.json.