Bats Installation: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 4: Line 4:


=bats-core Installation=
=bats-core Installation=
==bats-core Installation on Mac==
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
# If bats was installed before:
# If bats was installed before:
Line 18: Line 19:
{{Warn|Obsolete}}
{{Warn|Obsolete}}


==Installation on Mac==
==bats Installation on Mac==


<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
Line 26: Line 27:
</syntaxhighlight>
</syntaxhighlight>


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


  git clone https&#58;//github.com/sstephenson/bats.git
  git clone https&#58;//github.com/sstephenson/bats.git
  cd bats
  cd bats
  sudo ./install.sh /usr/local/
  sudo ./install.sh /usr/local/

Revision as of 00:18, 3 May 2023

Internal

bats-core Installation

bats-core Installation on Mac

# If bats was installed before:
brew unlink bats

brew install bats-core

bats --version
Bats 1.2.1

bats Installation


Obsolete

bats Installation on Mac

brew install bats
bats --version
0.4.0

bats Installation on Linux

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