Bats Installation: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 18: Line 18:
==Installation on Mac==
==Installation on Mac==


brew install bats
<syntaxhighlight lang='bash'>
brew install bats
bats --version
0.4.0
</syntaxhighlight>


==Installation on Linux==
==Installation on Linux==

Revision as of 02:15, 22 August 2020

Internal

bats-core Installation

# If bats was installed before:
brew unlink bats

brew install bats-core

bats --version
Bats 1.2.1

bats Installation

Installation on Mac

brew install bats
bats --version
0.4.0

Installation on Linux

git clone https://github.com/sstephenson/bats.git
cd bats
sudo ./install.sh /usr/local/