Install bats by entering the following commands in the terminal:
sudo apt update sudo apt install 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.