Individual skill
bats-testing-patterns
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.
plugins/shell-scripting/skills/bats-testing-patterns/SKILL.md
Source commit 41a968c41cb9328335444ded8d0436362d0ba50a
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 124
- Repository last updated
- Oct 4, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- ai-agents Repository topic
- anthropic Repository topic
- claude Repository topic
- claude-code Repository topic
- design-systems Repository topic
- developer-tools Repository topic
- frontend Repository topic
- llm Repository topic
- prompt-engineering Repository topic
- shadcn-ui Repository topic
- testing Derived category
- writing Derived category
- devops Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytesSKILL.mdcore · 12,471 bytes
Read excerpt
# 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.
## When to Use This Skill
- Writing unit tests for shell scripts
- Implementing test-driven development (TDD) for scripts
- Setting up automated testing in CI/CD pipelines
- Testing edge cases and error conditions
- Validating behavior across different shell environments
- Building maintainable test suites for scripts
- Creating fixtures for complex test scenarios
- Testing multiple shell dialects (bash, sh, dash)