← 返回 Skills 市场
honestqiao

Test Case Generator

作者 HonestQiao · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1347
总下载
1
收藏
17
当前安装
1
版本数
在 OpenClaw 中安装
/install test-case-generator
功能描述
Automatically generate complete unit test code including imports, test cases, mocks, and assertions for Jest, Mocha, or Pytest from given code.
安全使用建议
This skill is coherent and doesn't request credentials or installs; it simply generates test-source text from code you provide. Before using generated tests, review them manually — especially any mocks or injections — and avoid running generated tests against sensitive systems or secrets without inspection. Also note the skill's source/homepage are unknown; if you plan to rely on it heavily, prefer a skill with a verifiable author or open source implementation you can audit.
功能分析
Type: OpenClaw Skill Name: test-case-generator Version: 1.0.0 The `skill.yaml` implementation for `generateTests` directly interpolates extracted function names (`fn.name`) and parameters (`fn.params`) into the generated test code strings without apparent sanitization. This creates a code injection vulnerability in the *output* of the skill. If the input `code` contains malicious strings in function names or parameters, these could be embedded into the generated test files, potentially leading to arbitrary code execution when a user runs the generated tests. This is a significant vulnerability due to lack of input sanitization, but it does not demonstrate intentional malicious behavior by the skill itself.
能力评估
Purpose & Capability
The name/description (generate unit tests for Jest/Mocha/Pytest) match the instructions and the small implementation template in skill.yaml. No unrelated permissions, binaries, or credentials are requested.
Instruction Scope
SKILL.md and the implementation only describe taking code as input and returning test-file source (imports, mocks, assertions). There are no instructions to read system files, environment variables, or to execute user code or transmit data to external endpoints.
Install Mechanism
No install spec is present (instruction-only), so nothing is written to disk or downloaded. This is the lowest-risk install profile and is appropriate for the stated purpose.
Credentials
The skill requires no environment variables, credentials, or config paths. That is proportional to a code-to-test-generator that operates on provided code strings.
Persistence & Privilege
The skill is not always-enabled and requests no elevated privileges or modification of other skills/config; autonomous invocation is allowed by default but is not combined with other concerning capabilities.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install test-case-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /test-case-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of Test Case Generator skill. - Automatically extracts function signatures from code. - Generates unit test code for Jest, Mocha (JavaScript), and Pytest (Python). - Supports intelligent generation of test parameters and mock data. - Responds to trigger phrases such as "生成测试", "测试用例", "unit test", and "generate test". - Outputs a complete test file including imports, test cases, mocks, and assertions.
元数据
Slug test-case-generator
版本 1.0.0
许可证
累计安装 18
当前安装数 17
历史版本数 1
常见问题

Test Case Generator 是什么?

Automatically generate complete unit test code including imports, test cases, mocks, and assertions for Jest, Mocha, or Pytest from given code. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1347 次。

如何安装 Test Case Generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install test-case-generator」即可一键安装,无需额外配置。

Test Case Generator 是免费的吗?

是的,Test Case Generator 完全免费(开源免费),可自由下载、安装和使用。

Test Case Generator 支持哪些平台?

Test Case Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Test Case Generator?

由 HonestQiao(@honestqiao)开发并维护,当前版本 v1.0.0。

💬 留言讨论