File size: 782 Bytes
fcf8749 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | .PHONY: test test-e2e test-parallel test-cov lint
# Run all tests
test:
pytest tests/ -v --tb=short
# Run E2E tests only
test-e2e:
pytest tests/test_full_workflow.py tests/test_ev_recovery_e2e.py tests/test_admin_api.py -v
# Run tests in parallel (requires pytest-xdist)
test-parallel:
pytest tests/ -n auto -v
# Run with coverage
test-cov:
pytest tests/ --cov=app --cov-report=html --cov-report=term --cov-fail-under=90
# Lint
lint:
# ruff check app/ tests/ # ruff might not be installed
# mypy app/
echo "Linting skipped (install ruff/mypy to enable)"
# Start test database
test-db-up:
docker-compose -f tests/docker-compose.test.yml up -d
# Stop test database
test-db-down:
docker-compose -f tests/docker-compose.test.yml down -v
# Full CI pipeline
ci: test-cov
|