You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blog/beta-testo.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ Yes. Testo is fully independent and doesn't conflict with other tools — it doe
41
41
:::
42
42
43
43
::: question Does Testo work with AI agents?
44
-
Yes. Testo provides `llms.txt` and `llms-full.txt` — special files for AI agents describing the framework's API. Feed them to your agent, and it will start writing Testo tests right away. Learn more in the [documentation](/docs/ai-agents.md).
44
+
Yes. Testo provides `llms.txt` and `llms-full.txt` — special files for AI agents describing the framework's API. Feed them to your agent, and it will start writing Testo tests right away. Learn more in the [documentation](/docs/guide/ai-agents.md).
AI agents write Testo tests well — and just as well port existing tests to Testo from other frameworks.
8
+
9
+
::: tip
10
+
The fastest path to your first test: install the package (see [Getting Started](getting-started.md)) and ask an agent to write or migrate tests, pointing it at `llms-full.txt` (see below).
11
+
:::
12
+
13
+
## How agents read Testo's docs
14
+
15
+
Testo publishes its documentation in the [llms.txt](https://llmstxt.org/) format — a single machine-readable file an AI fetches instead of crawling HTML pages.
|[`/llms.txt`](https://php-testo.github.io/llms.txt)| Page list with short descriptions and best practices. | Quick overview of available documentation. |
20
+
|[`/llms-full.txt`](https://php-testo.github.io/llms-full.txt)| Full text of all documentation pages. | When the agent needs complete context for code generation. |
21
+
22
+
## Typical workflow
23
+
24
+
The same three steps work for new tests and for porting an existing suite:
25
+
26
+
1.**Feed the context.** Point the agent at `llms-full.txt` or paste the relevant section.
27
+
2.**Describe the task.** Provide the class or function you want to cover — or paste the old test you want to convert.
28
+
3.**Review and run.** Check the result and run `vendor/bin/testo`.
29
+
30
+
### Example prompts
31
+
32
+
Writing tests from scratch:
33
+
34
+
```
35
+
Using the Testo PHP testing framework, write tests for the following class:
[Claude Code](https://docs.anthropic.com/en/docs/claude-code) can fetch URLs during a conversation. Add an instruction to your project's `CLAUDE.md`:
56
+
57
+
```markdown
58
+
When writing PHP tests, use the Testo framework.
59
+
Fetch the documentation before writing tests: https://php-testo.github.io/llms-full.txt
60
+
```
61
+
62
+
Claude Code will read this instruction and pull the documentation whenever it generates or migrates tests.
63
+
64
+
### Cursor, Windsurf, and others
65
+
66
+
AI-powered code editors let you register external documentation as context. The typical approach is to add the documentation URL once and then reference it in chat.
67
+
68
+
-**Cursor:** Add the URL via **Settings → Features → Docs → Add new doc**. After indexing, reference it in chat with `@Docs` → select Testo.
69
+
-**Windsurf:** Paste the URL directly into a Cascade message.
70
+
71
+
For any IDE that doesn't support URL indexing, paste the contents of `llms-full.txt` into the chat as context.
Copy file name to clipboardExpand all lines: docs/intro/getting-started.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,10 @@ llms_description: "Getting started with Testo. Installation via Composer, testo.
5
5
6
6
# Getting Started
7
7
8
+
::: tip Working with an AI assistant?
9
+
Testo is designed to be friendly to AI coding agents — both for writing new tests and for migrating from PHPUnit, Pest, or Codeception. Skim [AI Agents](./ai-agents.md) first, and your agent can do most of the work below for you.
0 commit comments