Auto Test
v1.0.0自动生成单元测试。分析代码逻辑,自动生成 pytest (Python)、JUnit (Java)、Jest (JavaScript) 等测试框架的测试用例。支持覆盖率报告生成。
⭐ 0· 128·1 current·1 all-time
by@zgbin
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
OpenClaw
Benign
medium confidencePurpose & Capability
The name/description (automatically generate unit tests and coverage) match the SKILL.md instructions (analyze AST, generate tests, run coverage). One discrepancy: the skill references running python3 scripts/generate-tests.py, but no code or install is bundled — the SKILL.md therefore assumes the user/target repository or environment already provides the generator script or tooling.
Instruction Scope
The runtime instructions stay within the stated purpose: analyze code at the provided --path, generate test files, and optionally run coverage. They do not instruct uploading data to external endpoints or requesting unrelated credentials. Note: running tests/coverage means executing code from the target repository (side effects, network/database calls) which is expected for this task but a behavioral risk that the user must manage (use dry-run, sandboxing, or review before executing).
Install Mechanism
No install spec and no bundled code — lowest install risk. The SKILL.md is instruction-only. The missing installer/generator is a functional gap but not a covert install risk.
Credentials
The skill requests no environment variables or credentials, which is proportionate. However, it does require access to the project filesystem (--path) and will run code there; that access can expose repository secrets or cause side effects if tests execute destructive operations. The SKILL.md does not declare or restrict which files to read beyond --path.
Persistence & Privilege
always is false and the skill does not request persistent system-level privileges or modify other skills. It does suggest integrating with pre-commit/CI, which is typical integration guidance and not an automatic privilege change.
Assessment
This skill is an instruction-only template for generating tests; it does not include the generator script or install anything. Before using it: (1) confirm you have a trusted test-generator (e.g., scripts/generate-tests.py) in your repo or install a known tool from a reputable source; (2) prefer --dry-run first to preview changes; (3) run generation and coverage in an isolated environment (container or CI) because running tests executes your project code and can have side effects or trigger network calls; (4) review generated tests and any files the tool will write before committing; (5) ensure required test tools (pytest, pytest-cov, Jacoco, Istanbul, etc.) are installed from trusted package sources. If the skill's source or the generator script is unavailable or untrusted, do not run the commands against production repositories.Like a lobster shell, security has layers — review code before you run it.
latestvk974qh4dbdm5mq8z79acm052w183czeg
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
