Agent Development
Testing Strategies
Unit and Integration testing for Micro-Agents.
Unit Testing
Since agents are just simple web servers, you can test them with standard tools (pytest, jest).
python
def test_agent_logic():
agent = Agent()
result = agent.process({"input": "test"})
assert result["status"] == "success"Integration Testing
Testing how agents interact is harder. Use the cons test command.
bash
# Run a test workflow against a local cluster
cons test ./tests/integration-suite.yamlThis spins up a temporary namespace, deploys your agents, runs the workflow, and asserts the output.