diff --git a/docs/development/tests.mdx b/docs/development/tests.mdx index d317bb6dc..3bbf64ce2 100644 --- a/docs/development/tests.mdx +++ b/docs/development/tests.mdx @@ -4,6 +4,8 @@ description: "Testing patterns and requirements for FastMCP" icon: vial --- +import { VersionBadge } from "/snippets/version-badge.mdx" + Good tests are the foundation of reliable software. In FastMCP, we treat tests as first-class documentation that demonstrates how features work while protecting against regressions. Every new capability needs comprehensive tests that demonstrate correctness. ## FastMCP Tests @@ -301,6 +303,8 @@ While in-memory testing covers most unit testing needs, you'll occasionally need #### In-Process Network Testing (Preferred) + + For most network transport tests, use `run_server_async` with AnyIO task groups. This runs the server as a task in the same process, providing fast, deterministic tests with full debugger support: ```python