1
0
mirror of https://github.com/jaygooby/ttfb.sh synced 2025-12-10 07:57:21 +01:00

Tests. To run just call 'make'

You need to ensure that bats-core is installed:
https://github.com/bats-core/bats-core
This commit is contained in:
Jay Caines-Gooby
2022-07-04 18:54:11 +01:00
parent 91886e3d27
commit ab5df2edac
2 changed files with 130 additions and 0 deletions

9
Makefile Normal file
View File

@@ -0,0 +1,9 @@
default: test
.PHONY: check-bats-exists
check-bats-exists:
@which bats > /dev/null || (echo "Missing dependency. You need to ensure that 'bats' is installed and in your \$$PATH. See https://github.com/bats-core/bats-core" && exit 1)
.PHONY: test
test: check-bats-exists
bats tests/