.PHONY: run run-one no-dump-run deps

deps:
	@pip install -q -e "..[dev]" 2>/dev/null || pip install -q pytest

run: deps
	bats -x -T --print-output-on-failure *.bats
	pytest test_*.py -v

run-one:
	if [ -z "$(TESTS)" ]; then \
		echo "Error: make run-one TESTS=...";\
		exit 1;\
	fi
	bats -x -T --print-output-on-failure $(TESTS)

no-dump-run: deps
	bats -x -T --print-output-on-failure 000[23456789]*.bats
	pytest test_*.py -v
