Examples
Demo example
bashunit includes a sample script and its associated test file in the examples folder of its repository. In there, you'll find various tests showcasing the file and different bashunit functionalities.
Real examples
If you're interested in real-world examples, below is a list of actual projects that use bashunit to test their Bash scripts.
INFO
If your project utilizes bashunit, you can add it to this list by submitting a pull request to us.
TypedDevs/bashunit
bashunit uses itself to test the proper operation of each one of its features.
phpstan/phpstan-src
PHPStan uses bashunit standalone assertions to check for errors in their CI e2e tests.
Chemaclass/create-pr
A bash script to create a PR based on your branch name.
Chemaclass/conventional-commits
A specification for adding human and machine-readable meaning to commit messages.
Tito-Kati/fizzbuzz-bashunit
Popular introductory FizzBuzz kata solved in Bash with bashunit as the testing framework.
kndndrj/shload
Loading bar for your shell scripts.
phpctl
It is a Docker (containers) based development environment for PHP.