Test Case Generator
v1.0.0Automatically generate complete unit test code including imports, test cases, mocks, and assertions for Jest, Mocha, or Pytest from given code.
Security Scan
OpenClaw
Benign
high confidencePurpose & 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.
Assessment
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.Like a lobster shell, security has layers — review code before you run it.
latesttestingunit-test
Test Case Generator
根据代码自动生成单元测试用例。
功能
- 从代码提取函数签名
- 自动生成测试框架代码
- 支持 Jest、Mocha、Pytest
- 智能生成测试参数
触发词
- "生成测试"
- "测试用例"
- "unit test"
- "generate test"
支持框架
// Jest
test('functionName should work', () => {
expect(result).toBe(expected);
});
// Mocha
it('functionName', () => {
assert(result === expected);
});
// Python Pytest
def test_function_name():
assert result is not None
输出
返回完整的测试文件代码,包含:
- 导入语句
- 测试用例
- Mock 数据
- 断言
Comments
Loading comments...
