Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
- pytest framework with fixtures for auth (auth_client, admin_client) - Unit tests for SearchService - Integration tests for auth flow - Security tests (OWASP Top 10: SQL injection, XSS, CSRF) - Smoke tests for production health and backup monitoring - E2E tests with Playwright (basic structure) - DR tests for backup/restore procedures - GitHub Actions CI/CD workflow (.github/workflows/test.yml) - Coverage configuration (.coveragerc) with 80% minimum - DR documentation and restore script Staging environment: VM 248, staging.nordabiznes.pl Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
50 lines
1.1 KiB
INI
50 lines
1.1 KiB
INI
[pytest]
|
|
# NordaBiz Test Configuration
|
|
# ============================
|
|
|
|
# Test discovery
|
|
testpaths = tests
|
|
python_files = test_*.py
|
|
python_classes = Test*
|
|
python_functions = test_*
|
|
|
|
# Coverage settings (minimum 80%)
|
|
addopts =
|
|
-v
|
|
--tb=short
|
|
--cov=.
|
|
--cov-report=html:tests/coverage_html
|
|
--cov-report=term-missing
|
|
--cov-fail-under=80
|
|
|
|
# Ignore patterns
|
|
norecursedirs =
|
|
.git
|
|
venv
|
|
__pycache__
|
|
.auto-claude
|
|
node_modules
|
|
|
|
# Markers for test categories
|
|
markers =
|
|
unit: Unit tests (fast, no external dependencies)
|
|
integration: Integration tests (requires database)
|
|
e2e: End-to-end tests (requires staging/production)
|
|
smoke: Smoke tests (quick production health checks)
|
|
security: Security tests (OWASP Top 10)
|
|
migration: Database migration tests
|
|
dr: Disaster recovery tests
|
|
slow: Tests that take more than 5 seconds
|
|
|
|
# Logging
|
|
log_cli = true
|
|
log_cli_level = INFO
|
|
|
|
# Timeout for tests (seconds)
|
|
timeout = 30
|
|
|
|
# Filter warnings
|
|
filterwarnings =
|
|
ignore::DeprecationWarning
|
|
ignore::PendingDeprecationWarning
|