B
bats-testing-patterns
by @sickn33v1.0.0
3.3(0)
精通Bash自动化测试系统(Bats),用于全面的Bash脚本测试,确保代码质量。
安装方式
npx skills add sickn33/antigravity-awesome-skills --skill bats-testing-patternscompare_arrows
Before / After 效果对比
1 组使用前
Shell脚本缺乏自动化测试,修改后难以验证其正确性和稳定性,容易引入回归错误,导致生产环境风险增加。
使用后
运用Bats进行自动化测试,能为Shell脚本编写全面的测试用例,确保每次修改都可靠,显著提升脚本质量和部署信心。
description SKILL.md
name: bats-testing-patterns description: "Master Bash Automated Testing System (Bats) for comprehensive shell script testing. Use when writing tests for shell scripts, CI/CD pipelines, or requiring test-driven development of shell utilities." risk: unknown source: community date_added: "2026-02-27"
Bats Testing Patterns
Comprehensive guidance for writing comprehensive unit tests for shell scripts using Bats (Bash Automated Testing System), including test patterns, fixtures, and best practices for production-grade shell testing.
Use this skill when
- Writing unit tests for shell scripts
- Implementing TDD for scripts
- Setting up automated testing in CI/CD pipelines
- Testing edge cases and error conditions
- Validating behavior across shell environments
Do not use this skill when
- The project does not use shell scripts
- You need integration tests beyond shell behavior
- The goal is only linting or formatting
Instructions
- Confirm shell dialects and supported environments.
- Set up a test structure with helpers and fixtures.
- Write tests for exit codes, output, and side effects.
- Add setup/teardown and run tests in CI.
- If detailed examples are required, open
resources/implementation-playbook.md.
Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
forum用户评价 (0)
发表评价
效果
易用性
文档
兼容性
暂无评价,来写第一条吧
统计数据
安装量9
评分3.3 / 5.0
版本1.0.0
更新日期2026年3月16日
对比案例1 组
用户评分
3.3(0)
5
0%
4
0%
3
0%
2
0%
1
0%
为此 Skill 评分
0.0
兼容平台
🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI
时间线
创建2026年3月16日
最后更新2026年3月16日