Automic VaultAutomic Vault

brew

Installer bats-core avec Homebrew, apk, MacPorts, pacman, apt, dnf, Nix, zypper

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de bats-core pour les workflows d'agents IA.

installation

Commandes d'installation supplémentaires

macOS

Homebrewvérifié · 100%
brew install bats-core

local Homebrew formula metadata

MacPortsvérifié · 94%
sudo port install bats-core

MacPorts ports tree · sysutils/bats-core/Portfile · Source: api.github.com

Linux

Alpine Linux apkvérifié · 92%
sudo apk add bats-core

Alpine Linux edge package indexes · bats-core · Source: dl-cdn.alpinelinux.org

Arch Linux pacmanvérifié · 92%
sudo pacman -S bats

Arch Linux sync databases · bats · Source: geo.mirror.pkgbuild.com

Debian aptvérifié · 92%
sudo apt install bats

Debian stable package indexes · bats · Source: deb.debian.org

Fedora dnfvérifié · 92%
sudo dnf install bats

Fedora Rawhide package metadata · bats · Source: dl.fedoraproject.org

Nixvérifié · 92%
nix profile install nixpkgs#bats

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

openSUSE zyppervérifié · 92%
sudo zypper install bats

openSUSE Tumbleweed package metadata · bats · Source: download.opensuse.org

aperçu

Résumé du paquet

Bash Automated Testing System

Commandes et alias

  • bats

historique

Historique du projet et usages

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.

Historique du projet

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.

Historique d'adoption

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.

Modes d'utilisation

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.

Pourquoi les passionnés de paquets s'y intéressent

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.

Chronologie

  • 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.

posture de sécurité

Niveau de risque : vert

narrow executable package without higher-risk signals.

Classificateur de risque

risque vert · confiance faible · appliance

Pourquoi

  • narrow executable package without higher-risk signals

Signaux

  • metadata:no-higher-risk-signals

Comportement d'installation

  • Aucun hook post-install Homebrew n’est enregistré dans les métadonnées de formule.
  • Les métadonnées de bottle Homebrew sont disponibles pour 1 plateformes.

Revue recommandée

Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.

exécutables

Exécutables installés

CommandeTypeExpositionNote
batscliexécutable global

fraîcheur

Version et fraîcheur

Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.

page générée2026-07-25
version du gestionnaire1.14.0
gestionnaire mis à jour2026-07-22
données localesOK
amontà jour
dernière version détectéev1.14.0

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

  • OKAucun avertissement de fraîcheur n'a été généré.

métadonnées d'installation

Métadonnées du paquet

Clé du paquetbrew:bats-core
Version1.14.0
Gestionnaire de paquetsHomebrew
Page du gestionnaire de paquetshttps://formulae.brew.sh/formula/bats-core
Page d'accueilhttps://github.com/bats-core/bats-core
Dépôthttps://github.com/bats-core/bats-core
Docs amonthttps://bats-core.readthedocs.io/en/stable
LicenceMIT
Archive sourcehttps://github.com/bats-core/bats-core/archive/refs/tags/v1.14.0.tar.gz
Dernière mise à jour2026-07-22T08:40:21Z
Pulseupdated
Bouteilledisponible (sur all)
post-install Homebrewnon défini
Serviceaucun déclaré

faits du registre

Détails de la base source

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

correspondances dans les bases sources

Autres enregistrements de gestionnaires de paquets

Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.

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 Dépendances
  • 1 fournit
  • normalized package name match
  • Correspondance par : 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
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • normalized package name match
  • Correspondance par : 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
  • Correspondance par : 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 dépendances optionnelles
  • installed executable or alias match
  • Correspondance par : 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
  • Correspondance par : 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 dépendances optionnelles
  • installed executable or alias match
  • Correspondance par : 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 Dépendances
  • installed executable or alias match
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • installed executable or alias match
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • installed executable or alias match
  • Correspondance par : 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

piste source

Généré depuis les données du dépôt

Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.

Sources utilisées

  • 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