bats-testing-patterns

Community

Pattern-rich Bash tests with Bats.

Authortimbuchinger
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill documents patterns for writing robust shell script tests with Bats, including assertions, fixtures, mocking, and CI integration.

Core Features & Use Cases

  • Test structure: Basic test layout with @test blocks.
  • Assertions: Exit codes, output, and file checks.
  • Mocking patterns: Function and command stubbing for isolation.
  • CI integration: Hooks for GitHub Actions and other CI.

Quick Start

Create a .bats test file and write tests using the provided patterns.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: bats-testing-patterns
Download link: https://github.com/timbuchinger/loadout/archive/main.zip#bats-testing-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository