2022-06-07 21:34:35 +03:00
|
|
|
# Testing
|
2022-05-14 00:20:02 +03:00
|
|
|
|
|
|
|
Baf uses amazing test suite: https://bats-core.readthedocs.io/
|
|
|
|
|
2022-06-07 21:34:35 +03:00
|
|
|
Install Bats:
|
2022-05-14 00:20:02 +03:00
|
|
|
|
|
|
|
git clone https://github.com/bats-core/bats-core.git
|
|
|
|
bash bats-core/install.sh ~/.local
|
|
|
|
|
2022-06-07 21:34:35 +03:00
|
|
|
Add some Bats extensions:
|
2022-05-14 00:20:02 +03:00
|
|
|
|
|
|
|
git clone https://github.com/bats-core/bats-assert.git tests/helpers/bats-assert
|
|
|
|
git clone https://github.com/bats-core/bats-support.git tests/helpers/bats-support
|
|
|
|
|
2022-06-07 21:34:35 +03:00
|
|
|
Run tests:
|
2022-05-14 00:20:02 +03:00
|
|
|
|
|
|
|
make tests
|
|
|
|
|
2022-06-07 21:34:35 +03:00
|
|
|
# Building
|
2022-05-14 00:20:02 +03:00
|
|
|
|
2022-06-07 21:34:35 +03:00
|
|
|
Build docs (manpage and HTML):
|
2022-05-14 00:20:02 +03:00
|
|
|
|
|
|
|
make docs
|