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:
9
Makefile
Normal file
9
Makefile
Normal 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/
|
||||
Reference in New Issue
Block a user