Simplify poc testing with custom make target

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2020-01-24 11:58:33 +01:00
parent dd8b5895bd
commit 0b5eef85df
10 changed files with 11 additions and 320 deletions
+8 -1
View File
@@ -1,6 +1,6 @@
.PHONY: lint wip test fix catalog sync
all: sync test
all: checkbin sync test
sync:
pipenv sync
@@ -14,3 +14,10 @@ fix: lint
KAPOW_DEBUG_TESTS=1 pipenv run behave --stop --no-capture --tags=~@skip
catalog:
pipenv run behave --format steps.usage --dry-run --no-summary -q
clean:
pipenv --rm
checkbin:
@which kapow >/dev/null || (echo "ERROR: Your kapow binary is not present in PATH" && exit 1)
testpoc: sync
pipenv run pip install -r ../../testutils/poc/requirements.txt
PATH=../../testutils/poc:$$PATH KAPOW_CONTROLAPI_URL=http://localhost:8081 KAPOW_DATAAPI_URL=http://localhost:8081 pipenv run behave --no-capture --tags=~@skip