Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 318 Bytes

File metadata and controls

24 lines (16 loc) · 318 Bytes

bash-bats

BATS (Bash Automated Testing System)

debug:

bash -x init.sh

  • [[ '' -eq 1 ]]
  • echo N N
  • exit 1

executing test with bats:

apt install bats

sudo chmod +x init.sh

sudo chmod +x init_test.bats

./init_test.bats ✓ A test should be show N ✓ A test should be show Y

2 tests, 0 failures