Audit test
audit_test
MCP tool for agent-optimized test execution.
AuditTestTool
Bases: AXMTool
Run tests with agent-optimized, token-efficient output.
Registered as audit_test via axm.tools entry point.
Source code in packages/axm-audit/src/axm_audit/tools/audit_test.py
name
property
Return tool name for registry lookup.
execute(*, path='.', mode='failures', files=None, markers=None, stop_on_first=True, **kwargs)
Run tests with agent-optimized output.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to project root. |
'.'
|
mode
|
str
|
Output mode (compact, failures, delta, targeted). |
'failures'
|
files
|
list[str] | None
|
Specific test files to run. |
None
|
markers
|
list[str] | None
|
Pytest markers to filter. |
None
|
stop_on_first
|
bool
|
Stop on first failure. |
True
|
Returns:
| Type | Description |
|---|---|
ToolResult
|
ToolResult with structured test report. |