
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
dsh-api-testgen
Advanced tools
接口测试生成:解析 OpenAPI 3.x,为每个接口生成覆盖成功/缺参/非法枚举的测试用例,输出 Python(pytest) 或 TypeScript(vitest) 测试骨架
解析 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.json 的 dsh.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 开发三件套。FAQs
接口测试生成:解析 OpenAPI 3.x,为每个接口生成覆盖成功/缺参/非法枚举的测试用例,输出 Python(pytest) 或 TypeScript(vitest) 测试骨架
The npm package dsh-api-testgen receives a total of 18 weekly downloads. As such, dsh-api-testgen popularity was classified as not popular.
We found that dsh-api-testgen demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.