bats-testing-patterns
Comprehensive patterns and best practices for unit testing shell scripts using the Bats framework.
Install
npx skills add https://github.com/wshobson/agents --skill bats-testing-patternsStats
| Total installs | 3,280 |
| Weekly installs | 3.3K |
| GitHub stars | 32.4K |
| First seen | Jan 20, 2026 |
| Source | @wshobson/agents |
Summary
- Covers core Bats concepts including test syntax, assertion patterns for exit codes and output, and setup/teardown lifecycle management
- Provides mocking and stubbing strategies for external commands, functions, and environment variables to isolate units under test
- Includes fixture management patterns, error condition testing, and shell compatibility validation across bash, sh, and dash
- Demonstrates CI/CD integration with GitHub Actions and Makefile examples, plus parallel execution and test helper utilities
Tags
Related skills
| Skill | Installs | vs bats-testing-patterns |
|---|---|---|
| workflow-patterns | 3,508 | +228 |
| flutter-architecting-apps | 2,800 | -480 |
| flutter-testing-apps | 2,411 | -869 |
| tdd-workflow | 2,294 | -986 |
| screen-reader-testing | 3,464 | +184 |
FAQ
- How many installs does bats-testing-patterns have?
- bats-testing-patterns has 3,280 total installs and 3.3K installs this week.
- Where is bats-testing-patterns hosted?
- bats-testing-patterns is published by @wshobson/agents at https://github.com/wshobson/agents.
- How many GitHub stars does bats-testing-patterns have?
- bats-testing-patterns has 32.4K GitHub stars.
- When was bats-testing-patterns first indexed?
- OrangeBot.AI first indexed bats-testing-patterns on Jan 20, 2026.
- How do I install bats-testing-patterns?
- Run: npx skills add https://github.com/wshobson/agents --skill bats-testing-patterns