Skip to content

bujue600-arch/dsh-testgen

40Last commit Aug 14, 2026

dsh-testgen DSH plugin

dsh-testgen is an installable DeepSeek Harness plugin for automated unit-test generation. It provides a slash command and agent-callable tool, detects supported test runners, generates tests with an LLM or deterministic templates, runs them, and performs a bounded fix loop on generated test files.

How to install the dsh-testgen DSH plugin

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

Copying does not run this command. Review the repository and version before use.

Data source

Snapshot date: Aug 15, 2026

manifest-valid

What the dsh-testgen DSH plugin can do

  • Adds the /testgen command for generating tests from files or globs.
  • Exposes a structured generate_tests tool for agents.
  • Supports LLM-based test generation when an LLM adapter is available.
  • Provides deterministic structural smoke-test generation without an API key.
  • Autodetects Vitest, Jest, Mocha, or falls back to node --test.
  • Runs a bounded generate → run → fix loop and reports results.
  • Avoids overwriting existing test files and only rewrites files it generated.
  • Supports hot-reloaded configuration under the testgen settings key.

Where the dsh-testgen DSH plugin fits

  • Generate tests for newly written TypeScript or JavaScript source files.
  • Let a DeepSeek Harness agent create and validate tests after code changes.
  • Create offline structural smoke tests when no LLM adapter is available.
  • Run a bounded test-repair loop for generated tests that initially fail.
  • Generate machine-readable test reports with the --json option.

Who the dsh-testgen DSH plugin is for

  • DeepSeek Harness users developing JavaScript or TypeScript projects.
  • Coding-agent users who want agent-accessible test generation.
  • Teams using Vitest, Jest, Mocha, or Node's built-in test runner.

dsh-testgen DSH plugin limitations

  • Requires Node.js 22 or later and the DeepSeek Harness CLI.
  • The fix loop is bounded by maxIterations and can still finish with a failed report.
  • Existing test files are skipped rather than overwritten.
  • Without an LLM adapter, generated tests are deterministic structural smoke tests rather than LLM-authored behavioral tests.
  • TypeScript targets with node --test require an ESM project; JSX targets require Vitest or Jest.
  • Test execution uses the project's configured or detected runner and is subject to the configured per-run timeout.

Objective checks

These signals come from public metadata scans. They are not a security certification.

  • dependency counts

    package.json declares 2 runtime, 15 development, 5 peer, and 0 optional dependencies.

    info
  • dsh bundle declared

    package.json declares DSH bundle metadata.

    info
  • license declared

    GitHub reports the repository license as MIT.

    info
  • package manifest available

    A root package.json was captured and can be inspected by the registry.

    info
  • prepare script detected

    package.json declares a prepare lifecycle script that may run during relevant package installation workflows.

    info
  • source available

    Public GitHub source metadata is available for this registry snapshot.

    info

dsh-testgen DSH plugin alternatives

dsh-testgen DSH plugin questions

What is the dsh-testgen DSH plugin?

dsh-testgen is a project included in the current DSH plugin snapshot. This page organizes repository metadata and reviewed notes, but you should still inspect the upstream repository before running it.

How do I install the dsh-testgen DSH plugin?

The page shows the install command captured from the source record. Copying does not run it, so confirm the package, profile, and version against upstream documentation first.

Which DSH profile does dsh-testgen use?

The snapshot records web as the dsh-testgen profile. DSH conventions can change quickly, so verify the manifest and README before installation.

Is dsh-testgen compatible with the current DSH release?

The source data does not include a verified compatibility matrix. Check recent commits, releases, and DSH breaking changes, then test in a profile you can roll back.

What should I do if dsh-testgen fails to load?

Check the install command, selected profile, dependency logs, and Cordis startup output first. Keep the exact error string, then compare it with this site's fix pages and upstream issues.

What are the closest alternatives to dsh-testgen?

Related plugins on this page come from the current snapshot and are only candidates. Compare capabilities, maintenance activity, installation method, and limitations before choosing one.