# sstephenson/bats

Bash Automated Testing System

Repository: https://github.com/sstephenson/bats
Canonical: https://ross.abutalabs.com/products/bats
Language: Shell
License: MIT
License Family: permissive
Archived: true
Last push: 2019-09-27T17:21:43+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5362, "days_push": 2532, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7101, forks 507 (observed 2026-08-28T04:09:55.904315+00:00)

## What it is
Bats is a TAP-compliant testing framework for Bash scripts and UNIX programs, where test cases are Bash functions with special @test syntax. It runs tests in isolation and outputs human-readable or machine-parsable TAP results suitable for CI systems.

## Use cases
- test bash scripts
- write unit tests for shell scripts
- verify unix programs behave as expected
- run shell tests in continuous integration
- assert command exit status and output
- tap-compliant test output for ci pipelines

## When to avoid
- you need a general-purpose testing framework for non-shell languages
- you need advanced features like parallel test execution or mocking found in newer forks like bats-core

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: testing, cli
- domain: testing, developer-tools
- platform: cli
- tags: bash, tap, shell-scripting, unit-testing, ci, command-line, linux, macos

## Member repositories
- sstephenson/bats (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:55.904315+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:40:09.087943+00:00, confidence not recorded.
  - readme: https://github.com/sstephenson/bats (fetched 2026-08-28T04:09:55.904315+00:00, sha 5e73c3c62a99)
- Data as of 2026-08-30T08:39:29.467469+00:00.
