bujue600-arch/dsh-testgen

bujue600-arch★ 1TypeScriptLast synced: 2026-08-14

Open on GitHub

Automated unit-test generation for DeepSeek Harness: /testgen command + generate_tests tool that scaffold, run, and fix unit tests until they pass.

README excerpt

dsh-testgen Automated unit-test generation for DeepSeek Harness: a /testgen command and a generate tests tool that scaffold tests, run your project's test runner, and fix failures until they pass — bounded, observable, and honest about what it changed. English 中文 Why this plugin DeepSeek Harness agents write code constantly — and leave it untested. dsh-testgen closes that loop inside the harness : - One command for humans — /testgen src/utils/math.ts generates, runs, and fixes in a single step. - One tool for agents — the agent itself can call generate tests after writing code, keeping the loop in the session. - Two generators, no dead ends — behavioral tests through your composed LLM when available; deterministic structural smoke tests (zero LLM, works offline) otherwise. - A real fix loop — failures are parsed from vitest / jest / mocha / node:test output and fed back to the LLM, up to a bounded number of iterations, only ever rewriting the test files it generated. No duplicated wheels: the ecosystem has git tools and eval harnesses, but no plugin that generates, runs, and fixes unit tests as a first-class harness surface. Features ⚡ /testgen slash command [options] , --json , --…

View full README on GitHub →
Agentsaicoding-agentdeepseekdeepseek-harnessdshdsh-plugintest-generationtesting

Category