-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
50 lines (46 loc) · 1.33 KB
/
pytest.ini
File metadata and controls
50 lines (46 loc) · 1.33 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
47
48
49
50
[pytest]
# Basic Configuration
pythonpath = .
testpaths = tests
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Test Discovery
minversion = 7.0
# Removed HTML and parallelization options that were causing conflicts
addopts =
--strict-markers
--strict-config
--verbose
--tb=short
--show-capture=no
--durations=10
--maxfail=3
--cov=app
--cov-report=term-missing
--cov-fail-under=50
# Markers
markers =
unit: Unit tests that don't require external dependencies
integration: Integration tests that require database/redis
e2e: End-to-end tests that test complete workflows
slow: Tests that take longer than usual to run
auth: Authentication related tests
redis: Tests that require Redis
database: Tests that require database
performance: Performance and load tests
security: Security related tests
api: API endpoint tests
models: Database model tests
services: Service layer tests
smoke: Smoke tests for basic functionality
# Test Filters
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore:.*unclosed.*:ResourceWarning
# Logging Configuration
log_cli = true
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(name)s: %(message)s
log_cli_date_format = %Y-%m-%d %H:%M:%S