Discover and collect tests without running them.
Output:
| Option | Type | Default | Description |
|--------|------|---------|-------------|
| file_patterns | list[str] | ["test_*.py"] | File patterns to match |
file_patterns
list[str]
["test_*.py"]
| function_patterns | list[str] | ["test_*"] | Function patterns |
function_patterns
["test_*"]
Each discovered test is an TestAgentItem:
TestAgentItem
| Field | Type | Description |
|-------|------|-------------|
| name | str | Test function name |
name
str
| nodeid | str | Unique test identifier |
nodeid
| path | Path | File path |
path
Path
| markers | list[str] | Applied markers |
markers
Tests are grouped by module:
| path | Path | Module file path |
| items | list[TestAgentItem] | Tests in module |
items
list[TestAgentItem]