lsp-test-correlation

Solid

Find and run the tests that cover a source file. Use after editing a file to discover exactly which test files and test functions need to run — without running the entire test suite.

AI & Automation 56 stars 2 forks Updated today MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
58
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

> Requires the agent-lsp MCP server. # lsp-test-correlation Discover which tests cover a source file, then run only those tests. Faster than running the full suite when you've changed one or two files and want targeted feedback. ## When to use - After editing a source file: "Which tests do I need to run for this change?" - Before committing: run only the tests that cover what you touched - Debugging a failure: find which test file corresponds to a broken source file - Code review: understand what test coverage exists for a file before merging Use `/lsp-verify` instead when you want to run the full suite and check all three layers (diagnostics + build + tests). Use this skill when you want fast, scoped test execution. --- ## Workflow ### Step 1 — Find correlated test files Call `get_tests_for_file` for each edited source file: ``` mcp__lsp__get_tests_for_file({ "file_path": "/abs/path/to/source.go" }) ``` Returns the test files that correspond to the source file. For multiple edited files, call once per file. **If no test files are returned:** the source file may have no dedicated test file, or the mapping is not resolvable (e.g. integration tests in a separate directory). See Step 2 for fallback. ### Step 2 — Enumerate test functions (fallback or enrichment) If `get_tests_for_file` returns test files, use `find_symbol` to list the test functions defined in those files: ``` mcp__lsp__find_symbol({ "query": "Test" }) ``` Filter results to the correlated test fil...

Details

Author
blackwell-systems
Repository
blackwell-systems/agent-lsp
Created
2 months ago
Last Updated
today
Language
Go
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category