add evidence and report.md
This commit is contained in:
@@ -33,7 +33,8 @@ endef
|
||||
up down restart ps logs migrate migration \
|
||||
test-stand-up test-stand-down test-stand-destroy test-stand-ps \
|
||||
test-stand-smoke test-stand-persistence db-up \
|
||||
test-own test-docker test-limits test-concurrency test-migrations test-all
|
||||
test-own test-docker test-limits test-concurrency test-migrations test-all \
|
||||
explain evidence expiry-demo failure-demo
|
||||
|
||||
help:
|
||||
@echo "Курс: check | validate | test (smoke по BASE_URL) | load | test-persistence ACTION_SCRIPT=scripts/restart.sh"
|
||||
@@ -42,6 +43,8 @@ help:
|
||||
@echo " test-stand-smoke | test-stand-persistence"
|
||||
@echo "Тесты: test-own | test-docker | test-limits | test-concurrency | test-migrations"
|
||||
@echo "Всё: test-all (стенд + pytest + smoke + persistence на тестовом стенде)"
|
||||
@echo "Демо: explain | expiry-demo | failure-demo (на тестовом стенде)"
|
||||
@echo "Отчёт: evidence (перегенерировать evidence/ на тестовом стенде)"
|
||||
|
||||
check:
|
||||
$(PYTHON) scripts/check_contract.py
|
||||
@@ -122,3 +125,19 @@ test-migrations:
|
||||
$(PYTHON) -m pytest tests/test_migrations.py -q
|
||||
|
||||
test-all: test-stand-up test-docker test-stand-smoke test-stand-persistence
|
||||
|
||||
explain:
|
||||
$(TEST_ENV) DB_HOST=localhost DB_PORT=$(TEST_DB_PORT) PYTHONPATH=. $(PYTHON) scripts/explain_history.py
|
||||
|
||||
evidence: test-stand-up
|
||||
$(TEST_ENV) PYTHON=$(PYTHON) BASE_URL=$(TEST_BASE_URL) scripts/collect_evidence.sh
|
||||
|
||||
expiry-demo: test-stand-up
|
||||
$(TEST_ENV) SESSION_TTL_SECONDS=3 $(COMPOSE) up -d api
|
||||
$(call wait_ready,$(TEST_BASE_URL))
|
||||
BASE_URL=$(TEST_BASE_URL) TTL=3 scripts/expiry_demo.sh
|
||||
$(TEST_COMPOSE) up -d api
|
||||
$(call wait_ready,$(TEST_BASE_URL))
|
||||
|
||||
failure-demo: test-stand-up
|
||||
$(TEST_ENV) BASE_URL=$(TEST_BASE_URL) scripts/failure_demo.sh
|
||||
|
||||
Reference in New Issue
Block a user