On FreeBSD, the bats-core package exists.
On Linux, we can follow instructions from the readme to install manually:
Manual
$ git clone https://github.com/sstephenson/bats.git $ cd bats $ ./install.sh /usr/local
Here, we could clone with git.latest to /usr/src/bats (or /opt?), and run installation script.