How To Install Bats?

How To Install Bats?

bats

bash automated testing system

Maintainer: Yaroslav Halchenko



Section: shells

Install bats

  • Debian apt-get install bats Click to copy
  • Ubuntu apt-get install bats Click to copy
  • Alpine OS apk add bats Click to copy
  • Arch Linux pacman -S bats Click to copy
  • Kali Linux apt-get install bats Click to copy
  • Fedora dnf install bats Click to copy
  • Raspbian apt-get install bats Click to copy
  • macOS brew install bats Click to copy

bats

bash automated testing system

Bats is a TAP-compliant testing framework for Bash. It provides a simple way to verify that the UNIX programs you write behave as expected. Bats is most useful when testing software written in Bash, but you can use it to test any UNIX program.

bash-bats

Bash Automated Testing System

bats-core

Install the latest version of bats in Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian and macOS from terminal. To install the bats just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of bats from the respository and install it in your computer/server.