Test Quality
synapse_test_qualityUncover test coverage gaps, locate relevant test files and features, recommend optimal test targets, and configure Trunk linting for better code quality.
Instructions
Handles code quality, testing context, and linting control. High-level actions include:
'coverage': reports production files with no, weak, or strong test coverage using the indexed graph.
'find_tests': discovers behavioral tests, features, step definitions, or fixtures covering a symbol/query. Without repo_id, it returns at most 5 direct-confidence matches and stops once that bound is filled.
'setup_trunk': automatically configures Trunk linting and enables recommended linters for a repository.
'recommend_test_targets': recommends test targets (both unit/integration and BDD features) with behaviour summaries and coverage analysis.
REPLACES: grep_search for test files, find _test. patterns, manual test-to-code mapping. Use this tool instead of these alternatives for better results with 30-60% fewer tokens via automatic compression.
Usage (short): Report test coverage gaps, find relevant test files, recommend test targets, and configure Trunk linting.
Usage (long): Report static test coverage bands, locate feature files or unit tests for a symbol, recommend candidate files for unit and BDD test coverage (via recommend_test_targets) with behaviour summaries (excluding nested repositories/submodules by default, or opting in via targeted path filters), and run Trunk setup/audit check enable. Unscoped find_tests returns only direct-confidence matches, capped at 5.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The action to perform. | |
| max_tokens | No | Approximate final response budget in tokens (500-32000, default 4000). | |
| compress_payload | No | Set false to disable lossless response-key compression. |