Lightlines
By wshobson

bats-testing-patterns

wshobson10.4k installs

Shell script tests that catch more than success.

What it does

Guides the creation of shell-script test suites with Bats, covering assertions, fixtures, error handling, and CI integration.

When to use it

Use when writing shell-script tests, implementing test-driven development, or setting up automated testing in CI/CD.

How to use it

It changes how the agent writes shell-script tests, emphasizing focused tests, cleanup, and both success and failure paths.

What you provide

  • An existing project

Latest review

What you need · 2

Uses the Bats executable to run the project's shell-script test suites; installation instructions are provided.

Uses Bash for the shared test helper and Bash-specific test examples.


Access · 1

This skill

bats

Execute

Installs Bats in CI