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>
61 lines
1.1 KiB
INI
61 lines
1.1 KiB
INI
# Coverage.py Configuration for NordaBiz
|
|
# =======================================
|
|
|
|
[run]
|
|
# Source directories to measure
|
|
source = .
|
|
|
|
# Omit these from coverage
|
|
omit =
|
|
tests/*
|
|
venv/*
|
|
.venv/*
|
|
scripts/*
|
|
*/migrations/*
|
|
*/__pycache__/*
|
|
.auto-claude/*
|
|
setup.py
|
|
|
|
# Branch coverage
|
|
branch = True
|
|
|
|
# Parallel mode for multi-process
|
|
parallel = True
|
|
|
|
[report]
|
|
# Minimum coverage percentage
|
|
fail_under = 80
|
|
|
|
# Exclude these lines from coverage
|
|
exclude_lines =
|
|
# Have to re-enable the standard pragma
|
|
pragma: no cover
|
|
|
|
# Don't complain about missing debug-only code
|
|
def __repr__
|
|
if self\.debug
|
|
|
|
# Don't complain if tests don't hit defensive assertions
|
|
raise AssertionError
|
|
raise NotImplementedError
|
|
|
|
# Don't complain if non-runnable code isn't run
|
|
if 0:
|
|
if __name__ == .__main__.:
|
|
|
|
# Don't complain about abstract methods
|
|
@abstractmethod
|
|
|
|
# Show missing lines
|
|
show_missing = True
|
|
|
|
# Output precision
|
|
precision = 2
|
|
|
|
[html]
|
|
# HTML report directory
|
|
directory = tests/coverage_html
|
|
|
|
# Title
|
|
title = NordaBiz Coverage Report
|