-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
44 lines (38 loc) · 1.05 KB
/
pytest.ini
File metadata and controls
44 lines (38 loc) · 1.05 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
[pytest]
# Pytest Configuration for URL Shortener E2E Tests
# Test discovery
python_files = test_*.py
python_functions = test_*
python_classes = Test*
testpaths = tests
# Async configuration
asyncio_mode = auto
asyncio_default_fixture_loop_scope = function
# Output options
addopts =
-v
--strict-markers
--tb=short
--cov=.
--cov-report=html
--cov-report=term-missing
--cov-fail-under=80
# Markers integration markers
markers =
integration: Integration tests (slower, external dependencies)
e2e: End-to-end tests (full workflow tests)
performance: Performance and load tests
slow: Slow tests that should be run separately
unit: Unit tests (fast, isolated)
# Logging
log_cli = true
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s
# Warnings
filterwarnings =
# Ignore SQLAlchemy warnings in tests
ignore::sqlalchemy.exc.SADeprecationWarning
# Ignore Pydantic warnings
ignore::DeprecationWarning
# Ignore async warnings
ignore::DeprecationWarning:Missing asyncio fixture