dsh-test-coverage
Run the following command in DeepSeek Harness:
dsh plugin install uckkk/dsh-test-coverage
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install uckkk/dsh-test-coverage in DeepSeek Harness to install the plugin; the source repository is available at https://github.com/uckkk/dsh-test-coverage
About this plugin
After an Agent finishes a coverage-enabled test run, the raw report is often enormous and messy: hundreds of files, thousands of lines of XML or JSON. Pasting it straight into context wastes tokens and is hard to act on. dsh-test-coverage solves this by parsing LCOV, Cobertura, Istanbul (Vitest/Jest), and Go cover.out formats into clean, structured data, so you instantly see overall coverage, which files need tests most, and exactly which lines are uncovered.
The plugin exposes two tools. coverage_report returns the overall line-coverage percentage, a per-file table sorted from lowest to highest coverage, and the list of files that should be patched first. coverage_gaps takes a specific file and returns the exact uncovered line ranges, ready to be targeted by new tests. It is a pure Node implementation with no shell calls, no network requests, and no external services. Large reports are automatically truncated (file table capped at 300 entries, ranges at 400 segments) to keep context windows manageable.
The plugin handles parsing and analysis only; running tests and producing the original coverage report is still up to your projects test commands or other testing plugins. If you work in an Agent-driven TDD, test-patching, or code-review workflow and find coverage reports too noisy, this plugin turns that noise into an actionable checklist.
Use Cases
- Quickly identify the least-covered modules after an Agent test run
- Inspect exact uncovered line ranges in a file to guide test writing
- Get an at-a-glance coverage summary during code review
Best For
- Developers using Agent-driven TDD or test-patching workflows
- Engineers who need to parse multiple coverage report formats locally
- Teams who want to cut coverage-report noise and focus on actionable gaps
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.