> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.doc-detective.com/reference/docs-as-tests/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.doc-detective.com/_mcp/server. # Docs as tests > A documentation content testing framework that simplifies the process of keeping your docs accurate and up-to-date. ## Docs - [Docs as tests](https://docs.doc-detective.com/reference/docs-as-tests/overview.md): Worked examples that turn the same documented procedure into detected tests, inline tests, and standalone specs, in every supported format, for every Doc Detective feature. - [Examples by feature](https://docs.doc-detective.com/reference/docs-as-tests/feature-index.md): Every field and form the docs-as-tests examples use, with links to the examples that use it. - [Navigation and interaction, written as tests](https://docs.doc-detective.com/reference/docs-as-tests/navigation-interaction.md): One procedure that opens a page, clicks, types, and checks the result, shown as plain prose, as detected tests, as inline tests, and as a standalone spec, in every supported format. - [Interaction options, written as tests](https://docs.doc-detective.com/reference/docs-as-tests/interaction-options.md): Short procedures that each vary one option for clicking, typing, dragging, uploading, working in iframes, swiping, waiting, or checking links, in every supported format. - [HTTP requests and code, written as tests](https://docs.doc-detective.com/reference/docs-as-tests/http-code.md): Procedures that call an API, use an OpenAPI description, stub browser requests, and run shell commands and code, shown as prose, detected tests, inline tests, and a standalone spec. - [Screenshots and recordings, written as tests](https://docs.doc-detective.com/reference/docs-as-tests/capture.md): Procedures that take, crop, and annotate screenshots, draw annotations on a live page, and record video, shown as plain prose, detected tests, inline tests, and standalone specs in every supported format. - [Annotation options, written as tests](https://docs.doc-detective.com/reference/docs-as-tests/annotation-options.md): Short procedures that each vary one annotation type, `annotate` operation, or `annotationDefaults` level, in every supported format. - [Recording options, written as tests](https://docs.doc-detective.com/reference/docs-as-tests/recording-options.md): Short procedures that each vary one recording option or one automatic capture level, in every supported format. - [Sessions and surfaces, written as tests](https://docs.doc-detective.com/reference/docs-as-tests/sessions-surfaces.md): Procedures that keep cookies and browser state, work across tabs, windows, browser sessions, processes, and apps, and choose where and how they run, shown as plain prose, detected tests, inline tests, and standalone specs in every supported format. - [Variables and control flow, written as tests](https://docs.doc-detective.com/reference/docs-as-tests/data-control-flow.md): Procedures that load variables, pass values from one step to the next, add custom assertions, run steps conditionally, and route on a step's result, in every supported format. - [Step routing, written as tests](https://docs.doc-detective.com/reference/docs-as-tests/step-routing.md): Short procedures that each route on one step result with `onPass`, `onFail`, `onWarning`, or `onSkip`, in every supported format. - [Test routing, written as tests](https://docs.doc-detective.com/reference/docs-as-tests/test-routing.md): Short procedures that each route on one test result with `onPass`, `onFail`, `onWarning`, or `onSkip`, in every supported format. - [Test structure, written as tests](https://docs.doc-detective.com/reference/docs-as-tests/structure.md): Procedures that name specs, tests, and steps, keep several tests in one file, skip part of a page, set up and clean up around tests, record when a test last passed, include shared files, and process DITA maps, shown as prose, detected tests, inline tests, and standalone specs. - [Formats, written as tests](https://docs.doc-detective.com/reference/docs-as-tests/formats.md): What differs from one documentation format to the next, with one procedure per format that uses each of its statement forms, its ignore blocks, and its way to keep a code block from running. - [Custom detection, written as tests](https://docs.doc-detective.com/reference/docs-as-tests/custom-detection.md): Procedures whose detected tests come from custom fileTypes, with selectors, regex definitions, custom statement syntax, and a plain-text format, shown as prose, detected tests, inline tests, and a standalone spec.