bats-testing-patterns

bats testing patterns

wshobson ↓ 8k
Claude Code
View source ↗

What it does

  • 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

Requirements & configuration

Configuration: TMPDIRTEST_DIR

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

bats testing patterns

Source

Repository: https://github.com/wshobson/agents

bats-testing-patterns FAQ

What does the bats-testing-patterns skill do?

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. Writing unit tests for shell scripts Implementing test-driven development (TDD) for scripts

How do I install bats-testing-patterns?

Run: npx -y skills add https://github.com/wshobson/agents --skill bats-testing-patterns --agent claude-code — the source lives at github.com/wshobson/agents.

Maintain bats-testing-patterns?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

bats-testing-patterns on getagentictools
[![bats-testing-patterns on getagentictools](https://getagentictools.com/badge/skills/wshobson-agents-bats-testing-patterns.svg)](https://getagentictools.com/skills/wshobson-agents-bats-testing-patterns?ref=badge)
npx agentictools info skills/wshobson-agents-bats-testing-patterns

The second line is the CLI lookup for this page — handy in READMEs and docs.