bujue600-arch/dsh-testgen

Automated unit-test generation for DeepSeek Harness: /testgen command + generate_tests tool that scaffold, run

Automated unit-test generation inside DeepSeek Harness: a /testgen slash command (rendered in the Web UI) and a generate_tests model tool that scaffold tests, run the project's test runner, and fix failures until they pass — bounded, observable, and honest about what it changed. Two generators: behavioral tests through your composed LLM when available, deterministic structural smoke tests (zero LLM, works offline) otherwise. Failure parsing for vitest / jest / mocha / node:test output feeds a fix loop bounded by maxIterations, rewriting only the test files it generated. Hot-reloaded testgen: config in settings.yaml; refuses to overwrite user tests; typed end to end with 78 unit tests including a real end-to-end run.

Messaging & Communication ★ 3 updated 2026-08-14 ✅ runtime-tested
View on GitHub ↗

Install

dsh plugin --profile web add github:bujue600-arch/dsh-testgen

GitHub install per README (English): dsh plugin --profile web add github:bujue600-arch/dsh-testgen. Requires Node >= 22 and the dsh CLI. No npm package published yet.

Compatibility

DeepSeek Harness web profile. Node >= 22. Test-runner autodetect: vitest / jest / mocha / node:test.

Details

Recent updates

/testgen command + generate_tests tool; LLM and template generators; generate-run-fix loop; runner autodetect; hot-reloaded config; lifecycle-clean.

FAQ

Does it need an API key?
Only for the LLM generator. The template generator produces deterministic structural smoke tests with zero LLM calls and works offline.
Which test frameworks are supported?
vitest, jest, and mocha are detected from the project; node --test is the universal fallback.
Will it overwrite my tests?
No — it only rewrites the test files it generated and refuses to overwrite user-authored tests.

Alternatives

bujue600-arch/dsh-testgen · jinguanghai/deepseek-harness-forge-plugins · PerryLink/dsh-auto-review

More plugins in Messaging & Communication

Browse more in Messaging & Communication

Guides for Messaging & Communication plugins