← 返回 Skills 市场
davieyang

springboot-unit-testing

作者 Davieyang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
268
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install springboot-unit-testing
功能描述
专业的Spring Boot + MyBatis + MySQL项目单元测试技能,提供全面的测试覆盖策略。 当用户需要为Spring Boot项目编写单元测试时使用此技能,特别是包含: - 完整的正常流程测试 - 充分的异常场景测试 - 全面的边界值测试 - MyBatis Mapper层测试 - Service...
安全使用建议
This skill appears to do what it claims (testing templates, coverage checks, test-data/report generation) but has several practical and safety issues you should address before using it: 1) Dangerous SQL: The generated test-data SQL contains DELETE statements (e.g., DELETE FROM user; DELETE FROM order;) — only run generated SQL against isolated test databases. Never apply these scripts to production data. 2) Undeclared tooling dependencies: The scripts expect xmlstarlet and bc (used by check-coverage.sh) and the Python YAML module (PyYAML) used by generate-test-data.py. Install these beforehand or the scripts will fail. - On Debian/Ubuntu: apt install xmlstarlet bc - Install PyYAML: pip install pyyaml 3) Placeholder repository URLs: metadata and README reference GitHub URLs like https://github.com/your-repo/… which are not real. Verify the source/maintainer before cloning from or trusting an external repo. 4) Review scripts before running: open scripts/check-coverage.sh, generate-test-data.py and generate-test-report.py and confirm they will run in your environment and won't touch production resources. Pay attention to file paths they write (they create files under the provided project root). 5) CI usage: If you integrate these scripts into CI, run them against test containers or isolated environments (e.g., Testcontainers, H2) and ensure DB credentials used by CI point to ephemeral test instances. 6) Missing dependency declarations: Consider adding a clear prerequisites section (xmlstarlet, bc, python libs) to SKILL.md or package metadata so users know what to install. If you need, I can list the exact lines in the scripts that perform destructive SQL or show a checklist you can run to safely evaluate this skill in a sandbox first.
功能分析
Type: OpenClaw Skill Name: springboot-unit-testing Version: 1.0.0 The skill bundle provides a comprehensive set of templates, documentation, and utility scripts for Spring Boot unit testing. The included scripts (check-coverage.sh, generate-test-data.py, and generate-test-report.py) perform standard development tasks such as running Maven tests, generating test data files, and parsing XML reports to create HTML summaries. No evidence of data exfiltration, malicious execution, or prompt injection was found. The behavior is entirely consistent with the stated purpose of assisting in software testing.
能力评估
Purpose & Capability
Name/description, templates, and example test files align with a Spring Boot + MyBatis unit-testing skill. However, some runtime requirements implied by the scripts (xmlstarlet, bc, PyYAML) are not declared in the skill metadata (clawhub.yml/package.json lists only java, maven, python). Repository URLs in metadata are placeholders (https://github.com/your-repo/...), which is inconsistent with a published package.
Instruction Scope
SKILL.md and included scripts instruct the agent/user to run mvn and Python scripts and to generate SQL test-data. The generated SQL includes destructive statements (DELETE FROM user; DELETE FROM order; etc.). If these SQL files are executed against a non-test/production database they could delete data. The scripts scan and read project files (src/test/java, target/site/jacoco), which is appropriate for a testing tool, but the instructions assume the user will run them in a safe test environment — that risk is not emphasized in the docs.
Install Mechanism
There is no platform install spec (instruction-only), reducing install risk. clawhub.yml includes an installation example that clones a GitHub repo, but the URL is a placeholder; the README also suggests downloading a release URL that points to a placeholder. No remote arbitrary binary downloads are present in the package itself. Overall installation behaviour is normal but repository placeholders are inconsistent and could lead a user to clone the wrong source if not corrected.
Credentials
The skill declares no required environment variables or credentials (good). However, the scripts rely on additional system tooling not listed anywhere: xmlstarlet (used in check-coverage.sh), bc (used in shell math), and the Python YAML library (PyYAML) used by generate-test-data.py — these are implicit dependencies. Not declaring these tools/libraries is an incoherence and will cause failures or force users to install extra tooling without guidance.
Persistence & Privilege
always:false and no requested persistence or wide privileges. The skill does create and write files under the supplied project path (test data, reports), which is expected for this purpose. It does not request system-wide configuration changes or credentials for other skills.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install springboot-unit-testing
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /springboot-unit-testing 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
SpringBoot-MyBatis-UnitTesting v1.0.0 - 首次发布,提供Spring Boot + MyBatis + MySQL项目的专业单元测试解决方案 - 涵盖Mapper、Service、Controller等多层次全面的测试模板和策略 - 支持正常流程、异常场景、边界值、集成及端到端测试,适配JUnit 5、Mockito等主流测试技术 - 提供测试数据工厂、SQL示例、工具脚本及详细文档 - 包含CI覆盖率、测试命名规范、常见问题与最佳实践 - 配套发布与维护指南,支持ClawHub平台发布
元数据
Slug springboot-unit-testing
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

springboot-unit-testing 是什么?

专业的Spring Boot + MyBatis + MySQL项目单元测试技能,提供全面的测试覆盖策略。 当用户需要为Spring Boot项目编写单元测试时使用此技能,特别是包含: - 完整的正常流程测试 - 充分的异常场景测试 - 全面的边界值测试 - MyBatis Mapper层测试 - Service... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 268 次。

如何安装 springboot-unit-testing?

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

springboot-unit-testing 是免费的吗?

是的,springboot-unit-testing 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

springboot-unit-testing 支持哪些平台?

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

谁开发了 springboot-unit-testing?

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

💬 留言讨论