-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
46 lines (40 loc) · 1.21 KB
/
pytest.ini
File metadata and controls
46 lines (40 loc) · 1.21 KB
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
36
37
38
39
40
41
42
43
44
45
46
[pytest]
# Test discovery patterns
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths = services/landing-page/tests services/cellxgene/tests tests/e2e
# Coverage configuration
# Note: 80% coverage target applies to full test suite (unit + integration + contract)
# Unit tests alone achieve ~40% as they don't test routes, app initialization, etc.
# Integration tests cover the remaining application layer and API contracts.
addopts =
--verbose
--strict-markers
--tb=short
--cov=services/landing-page/src
--cov=services/cellxgene/src
--cov-report=html:htmlcov
--cov-report=term-missing
-ra
# Markers for test categorization
markers =
unit: Unit tests (fast, no external dependencies)
integration: Integration tests (may require services)
contract: Contract tests (API specification compliance)
e2e: End-to-end tests (full system tests)
slow: Tests that take a long time to run
# Logging
log_cli = false
log_cli_level = INFO
log_file = tests/test_output.log
log_file_level = DEBUG
# Warnings
filterwarnings =
error
ignore::UserWarning
ignore::DeprecationWarning
# Timeout (seconds)
timeout = 300
timeout_method = thread