DeepSeek Harness plugin

dsh-api-testgen

接口测试生成:解析 OpenAPI 3.x,为每个接口生成覆盖成功/缺参/非法枚举的测试用例,输出 Python(pytest) 或 TypeScript(vitest) 测试骨架

Jump to install

Source facts

Repository
uckkk/dsh-api-testgen
Latest update
Aug 19, 2026
Category
Tools & Capabilities
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/uckkk/dsh-api-testgen
Plugin: dsh-api-testgen
Author: uckkk

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-api-testgen · 接口测试生成

解析 OpenAPI 3.x(JSON / YAML),为每个接口生成覆盖 成功 2xx / 缺少必填路径参数 / 非法枚举值 的接口测试用例,输出 Python(pytest + requests)或 TypeScript(vitest + fetch)测试骨架。纯 Node 实现,无网络、无外部服务。

提供的工具

工具作用
gen_tests解析规范,生成接口测试文件(pytest 或 vitest)

安装

dsh plugin add dsh-api-testgen

安装后在 profile 的 package.jsondsh.profile.bundles 中加入 "dsh-api-testgen"

用法示例

根据 openapi.yaml 生成 Python 接口测试
→ 调用 gen_tests(spec="openapi.yaml", lang="python")

生成 TypeScript(vitest) 接口测试
→ 调用 gen_tests(spec="openapi.yaml", lang="typescript", outDir="./src/__tests__")

说明

  • 每个接口生成:成功用例 + 每个必填路径参数的缺参用例 + 每个枚举参数的非法值用例。
  • 生成的测试只是骨架(断言状态码),具体业务断言需按需补充;运行前改 BASE_URL
  • dsh-api-contract(客户端)、dsh-api-mock(Mock 服务器)配合,构成 API 开发三件套。

安装

dsh plugin add github:uckkk/dsh-api-testgen

> 安装即在本机运行第三方代码,请自行审阅源码。

安装

dsh plugin add github:uckkk/dsh-api-testgen

使用

安装后在会话中调用该插件注册的工具即可。

许可

MIT

> 安装即在本机运行第三方代码,请自行审阅源码。