dsh-testgen: A Plugin for Generating, Running, and Fixing Unit Tests for DeepSeek Harness
DSH-TestGen is a community plugin for DeepSeek Harness (DSH), open-sourced by bujue600-arch under the MIT License. This plugin aims to address the lack of a testing feedback loop after code generation, providing automated unit test generation, execution, and repair capabilities. Core features include a human-oriented `/testgen` slash command and a `generate_tests` tool for agent invocation. It supports two generation paths: LLM-based generation and template-based generation, with automatic detection of Vitest, Jest, Mocha, or fallback to the Node test runner. The workflow follows a "generate → run → parse failures → repair" loop, with repair rounds limited by `maxIterations` to ensure bounded iterations until tests pass. The plugin employs a T
Read More