Backend: - conftest with async SQLite DB, factory fixtures for all models - pytest-asyncio config in pyproject.toml - Tests: auth (JWT, dev login), RBAC (access service), audit (query, export), brand enforcement (colors, fonts, logos, contrast), retention (cleanup, purge), content intelligence (regex classifiers), slide mapping, review workflow, analytics data queries Frontend: - Cypress E2E config with baseUrl and viewport settings - Custom commands (devLogin, createPresentation) - E2E specs: login flow, wizard navigation, admin panel, review workflow - Test scripts in package.json Infrastructure: - Makefile: test-e2e and test-all targets Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
36 lines
573 B
Makefile
36 lines
573 B
Makefile
.PHONY: dev build up down migrate seed test test-e2e test-all logs shell-api shell-db
|
|
|
|
dev:
|
|
docker compose up --build
|
|
|
|
build:
|
|
docker compose build
|
|
|
|
up:
|
|
docker compose up -d
|
|
|
|
down:
|
|
docker compose down
|
|
|
|
migrate:
|
|
docker compose exec api alembic upgrade head
|
|
|
|
seed:
|
|
docker compose exec api python -m scripts.seed
|
|
|
|
test:
|
|
docker compose exec api pytest tests/ -v
|
|
|
|
test-e2e:
|
|
docker compose exec web npx cypress run
|
|
|
|
test-all: test test-e2e
|
|
|
|
logs:
|
|
docker compose logs -f
|
|
|
|
shell-api:
|
|
docker compose exec api bash
|
|
|
|
shell-db:
|
|
docker compose exec postgres psql -U deckforge
|