add evidence and report.md

This commit is contained in:
2026-10-27 00:18:03 +03:00
parent 8ad0bb6947
commit a7223cf164
22 changed files with 968 additions and 39 deletions
+20 -1
View File
@@ -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