The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
docs(claude.md): require tests to check behavior, not code structure
ryan-crabbe-berri80e0bc2dc686
diff --git a/CLAUDE.md b/CLAUDE.mdindex 930825aeb89..d9e9e8f1586 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -23,6 +23,8 @@ When adding new features, add meaningful tests. Don't add tests that don't checkSame thing for bug fixes. The tests should make it so that this specific bug can never happen again without failing tests (i.e., regression)+Never test structure of code only function of it+`tests/test_litellm/` mirrors `litellm/` in a parallel path (see `tests/test_litellm/readme.md`). Name tests `test_<filename>.py`, but always match the existing test file in the directory you touch — many provider dirs use longer descriptive names (e.g. `test_anthropic_chat_transformation.py`) to avoid ambiguity across sibling folders. For bug fixes, extend the existing mapped test file rather than creating a new one. Only create a new test file for a new feature (provider, endpoint, or transformation module) that has no mapped test yet, following that directory's naming convention (or `test_<filename>.py` if you're the first test there). One focused regression test beats many shallow onesEnd-to-end tests belong in `tests/e2e/` and must follow the harness conventions documented in that directory's `CLAUDE.md`