Automic VaultAutomic Vault

brew

bats-core を Homebrew, apk, MacPorts, pacman, apt, dnf, Nix, zypper でインストール

bats-core のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install bats-core

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install bats-core

MacPorts ports tree · sysutils/bats-core/Portfile · ソース: api.github.com

Linux

Alpine Linux apk確認済み · 92%
sudo apk add bats-core

Alpine Linux edge package indexes · bats-core · ソース: dl-cdn.alpinelinux.org

Arch Linux pacman確認済み · 92%
sudo pacman -S bats

Arch Linux sync databases · bats · ソース: geo.mirror.pkgbuild.com

Debian apt確認済み · 92%
sudo apt install bats

Debian stable package indexes · bats · ソース: deb.debian.org

Fedora dnf確認済み · 92%
sudo dnf install bats

Fedora Rawhide package metadata · bats · ソース: dl.fedoraproject.org

Nix確認済み · 92%
nix profile install nixpkgs#bats

nixpkgs package indexes · pkgs/by-name/ba/bats/package.nix · ソース: api.github.com

openSUSE zypper確認済み · 92%
sudo zypper install bats

openSUSE Tumbleweed package metadata · bats · ソース: download.opensuse.org

概要

パッケージ概要

Bash Automated Testing System

コマンドとエイリアス

  • bats

履歴

プロジェクトの歴史と使われ方

bats-core is the community-maintained continuation of Bats, the Bash Automated Testing System: a TAP-compliant testing framework where test files are Bash scripts and each test case runs normal shell commands.

プロジェクトの歴史

The original Bats project dates to Sam Stephenson's 2011-2016 copyright era. The current README says bats-core was forked from the original Bats repository on Tuesday, September 19, 2017 at commit 0360811 after development had stalled and write access to the original repository could not be obtained.

bats-core released Bats 1.0.0 on June 8, 2018. That release emphasized compatibility with 0.4.0 while adding Bash compatibility work, Docker support, better Windows and macOS stability, TAP fixes, and major performance improvements.

The original Bats repository was archived read-only by its owner as of April 29, 2021, and the bats-core README identifies bats-core as the community-maintained Bats project.

採用の歴史

Bats-core is widely packaged as the practical shell-testing tool for Unix projects. The input metadata lists apk, Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Ubuntu, and zypper packages, while the upstream README points users to GitHub issues, tested pull requests, examples of projects using Bats, and Read the Docs documentation.

The repository page showed about 6.1k stars, roughly 2,004 commits, and 24 releases at enrichment time, with v1.13.0 shown as the latest release on November 7, 2025.

使われ方

A Bats test file is a Bash script with special syntax for test cases. Under the hood, each test is a function with a description, and ordinary shell commands become assertions through exit status and Bash errexit behavior.

Bats is most useful for testing Bash software, but the README explicitly notes it can test any Unix program. That makes it popular for CLI packages, install scripts, dotfiles, shell libraries, and smoke tests around command-line behavior.

パッケージ好きにとっての重要性

bats-core is one of the package-nerd standards for testing shell-facing software because it sits exactly where many package bugs happen: command names, exit statuses, stdout/stderr, file effects, and portable shell behavior.

Its history also matters culturally. It shows a successful community-maintained fork preserving a small but widely depended-on developer tool when the original repository stalled, while keeping compatibility with existing Bats tests.

Because it emits TAP and uses shell syntax, bats-core fits neatly into old and new CI systems, distro packaging tests, and language-agnostic build pipelines without demanding a heavier test framework.

タイムライン

  • 2011-2016: Original Bats copyright period credited to Sam Stephenson.
  • 2017: bats-core fork created from original Bats on September 19.
  • 2018: Bats 1.0.0 released on June 8 with compatibility, Docker, stability, and performance improvements.
  • 2021: Original Bats repository archived read-only on April 29.
  • 2025: Repository page lists v1.13.0 as latest release on November 7.

Related projects

  • sstephenson/bats is the original Bats repository.
  • The bats-core ecosystem includes helper libraries such as bats-support, bats-assert, bats-file, and bats-detik.
  • TAP is the output protocol family that makes Bats results easy to consume in broader test tooling.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 1 個のプラットフォームターゲットで利用できます。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
batscliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-25
マネージャ版1.14.0
マネージャ更新日2026-07-22
ローカルデータOK
上流最新
検出された最新v1.14.0

https://github.com/bats-core/bats-core

  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:bats-core
バージョン1.14.0
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/bats-core
ホームページhttps://github.com/bats-core/bats-core
リポジトリhttps://github.com/bats-core/bats-core
上流ドキュメントhttps://bats-core.readthedocs.io/en/stable
ライセンスMIT
ソースアーカイブhttps://github.com/bats-core/bats-core/archive/refs/tags/v1.14.0.tar.gz
最終更新2026-07-22T08:40:21Z
Pulseupdated
Bottle利用可能 (対象 all)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namebats-core
Aliases
  • bats
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

apk95%

bats-core 1.13.0-r0

Bash Automated Testing System

https://github.com/bats-core/bats-core

sudo apk add bats-core
  • License: MIT
  • Architecture: x86_64
  • Source Package: bats-core
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Bats Core
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: bats-core from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

bats-core-doc 1.13.0-r0

Bash Automated Testing System (documentation)

https://github.com/bats-core/bats-core

sudo apk add bats-core-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: bats-core
  • normalized package name match
  • 一致条件: Bats Core
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: bats-core-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
pacman95%

bats 1.13.0-1

Bash Automated Testing System

https://github.com/bats-core/bats-core

sudo pacman -S bats
  • License: MIT
  • Architecture: any
  • 4 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Bats Core
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: bats from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

bats-core

sudo port install bats-core
  • normalized package name match
  • 一致条件: Bats Core
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/bats-core/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Debian apt92%

bats 1.11.1-1

bash automated testing system

https://github.com/bats-core/bats-core

sudo apt install bats
  • Section: devel
  • Architecture: all
  • 1 任意依存関係
  • installed executable or alias match
  • 一致条件: Bats
Debian stable package indexes · deb.debian.org · Debian stable package indexes: bats from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix92%

bats

nix profile install nixpkgs#bats
  • installed executable or alias match
  • 一致条件: Bats
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ba/bats/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt92%

bats 1.10.0-1

bash automated testing system

https://github.com/bats-core/bats-core

sudo apt install bats
  • Section: universe/shells
  • Architecture: all
  • 1 任意依存関係
  • installed executable or alias match
  • 一致条件: Bats
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: bats from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk92%

bats 1.13.0-r1

Meta package for Bats

https://bats-core.readthedocs.io/

sudo apk add bats
  • License: MIT
  • Architecture: x86_64
  • Source Package: bats
  • 1 依存関係
  • installed executable or alias match
  • 一致条件: Bats
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: bats from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf92%

bats 1.13.0-3.fc44

Bash Automated Testing System

https://github.com/bats-core/bats-core

sudo dnf install bats
  • License: MIT
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: bats
  • 3 依存関係
  • 1 提供
  • installed executable or alias match
  • 一致条件: Bats
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: bats from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper92%

bats 1.13.0-1.1

Bash Automated Testing System

https://github.com/bats-core/bats-core/

sudo zypper install bats
  • License: MIT
  • Category: Development/Tools/Other
  • Architecture: noarch
  • Source Package: bats
  • 2 依存関係
  • 1 提供
  • installed executable or alias match
  • 一致条件: Bats
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: bats from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment