dsh-testgen
Run the following command in DeepSeek Harness:
dsh plugin install bujue600-arch/dsh-testgen
Paste the following prompt into your AI chat to install this plugin:
In DeepSeek Harness, run the command dsh plugin install bujue600-arch/dsh-testgen to install the plugin, with the full source code address at https://github.com/bujue600-arch/dsh-testgen.
About this plugin
Unit testing is crucial for code quality in software development, but manual test writing is tedious and often skipped, especially when DeepSeek Harness agents auto-generate code, leaving tests behind. The dsh-testgen plugin solves this by integrating seamlessly into the harness, automating the entire cycle of test generation, execution, and fixing through a single command or tool call.
At its core, dsh-testgen offers dual generation modes: with an LLM adapter, it creates behavioral tests; without one, it falls back to a deterministic template generator for structural smoke tests. The plugin auto-detects the project's test runner (like vitest or jest) and runs a bounded fix loop, parsing errors from test output and iterating corrections until tests pass or the limit is reached. All this happens within the session, modifying only test files and never touching source code.
This plugin is ideal for DeepSeek Harness users: human developers can swiftly validate code changes via the /testgen command, bypassing manual testing, while automation agents can call generate_tests immediately after writing code, maintaining a closed loop. Whether for small projects or complex workflows, dsh-testgen boosts development efficiency and code reliability, making testing effortless.
Screenshots
Use Cases
- Human developers quickly generate, run, and fix unit tests via the /testgen command.
- AI agents automatically call the tool for test integration after writing code.
- Generate structural smoke tests using the template generator in offline or no-LLM environments.
Best For
- Developers and teams using DeepSeek Harness.
- AI agents in automated workflows.
- Software engineers seeking efficient testing and code quality.
Related Plugins
A method pack that makes AI coding agents plan against your real baseline, prove completion with fresh evidence, and reduce reworks and unsafe changes.
Turns the DeepSeek Harness session into a captain that builds a durable sub-agent team, splits goals into dependency-aware tasks, and coordinates work via direct messages and a live Web UI.
Gives coding agents design judgment, letting Claude Code, Cursor, and 70+ agents generate and iterate high-quality UI, presentations, and graphics right from the terminal.
Run the Pi ecosystem's plugins on DeepSeek Harness, unmodified, via a compatibility layer that implements Pi's public extension ABI on DSH's native services.
