smart_test
Execute test commands and receive filtered output showing only failures with error details. Automatically supports Jest, Vitest, pytest, cargo-test, go-test.
Instructions
Execute a test command and return structured, actionable output. Shows only failures by default (name, location, error, expected/received, truncated stack). Detects Jest/Vitest/pytest/cargo-test/go-test automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory | |
| command | Yes | Test command to execute | |
| show_passes | No | Include individual passing tests in output | |
| filter_level | No | Filter aggressiveness. Use "passthrough" to get the full raw test output without filtering | |
| show_coverage | No | Include coverage table if present |