← Back to Skills Marketplace
davieyang

springboot-unit-testing

by Davieyang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
268
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install springboot-unit-testing
Description
专业的Spring Boot + MyBatis + MySQL项目单元测试技能,提供全面的测试覆盖策略。 当用户需要为Spring Boot项目编写单元测试时使用此技能,特别是包含: - 完整的正常流程测试 - 充分的异常场景测试 - 全面的边界值测试 - MyBatis Mapper层测试 - Service...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install springboot-unit-testing
  3. After installation, invoke the skill by name or use /springboot-unit-testing
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
SpringBoot-MyBatis-UnitTesting v1.0.0 - 首次发布,提供Spring Boot + MyBatis + MySQL项目的专业单元测试解决方案 - 涵盖Mapper、Service、Controller等多层次全面的测试模板和策略 - 支持正常流程、异常场景、边界值、集成及端到端测试,适配JUnit 5、Mockito等主流测试技术 - 提供测试数据工厂、SQL示例、工具脚本及详细文档 - 包含CI覆盖率、测试命名规范、常见问题与最佳实践 - 配套发布与维护指南,支持ClawHub平台发布
Metadata
Slug springboot-unit-testing
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is springboot-unit-testing?

专业的Spring Boot + MyBatis + MySQL项目单元测试技能,提供全面的测试覆盖策略。 当用户需要为Spring Boot项目编写单元测试时使用此技能,特别是包含: - 完整的正常流程测试 - 充分的异常场景测试 - 全面的边界值测试 - MyBatis Mapper层测试 - Service... It is an AI Agent Skill for Claude Code / OpenClaw, with 268 downloads so far.

How do I install springboot-unit-testing?

Run "/install springboot-unit-testing" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is springboot-unit-testing free?

Yes, springboot-unit-testing is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does springboot-unit-testing support?

springboot-unit-testing is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created springboot-unit-testing?

It is built and maintained by Davieyang (@davieyang); the current version is v1.0.0.

💬 Comments