-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpytest.ini
More file actions
80 lines (70 loc) · 2.15 KB
/
pytest.ini
File metadata and controls
80 lines (70 loc) · 2.15 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[tool:pytest]
# Pytest configuration for optimized rxiv-maker test suite
# Test discovery
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Output configuration
console_output_style = progress
verbosity = 1
# Markers for test categorization
markers =
smoke: Quick smoke tests for basic functionality
unit: Unit tests for individual components
integration: Integration tests for component interactions
e2e: End-to-end tests for complete workflows
regression: Regression tests for known issues
fast: Fast tests (typically unit tests under 5 seconds)
slow: Tests that take longer than 30 seconds
docker: Tests requiring Docker
network: Tests requiring network connectivity
filesystem: Tests with heavy filesystem operations
validation: Validation system tests
processor: Content processor tests
infrastructure: Infrastructure and platform tests
performance: Performance and benchmark tests
cli: Command line interface tests
binary: Binary execution tests
pypi: PyPI package integration tests
ci_exclude: Tests excluded from CI
system: System integration tests
build_manager: Build manager specific tests
medium: Medium duration tests (5-30 seconds)
flaky: Tests that may be unstable in certain environments
pdf_validation: PDF validation and processing tests
# Performance optimizations
addopts =
--strict-markers
--strict-config
--disable-warnings
--tb=short
--maxfail=5
--durations=10
-ra
# Coverage configuration (when using pytest-cov)
# addopts = --cov=src/rxiv_maker --cov-report=term-missing --cov-report=html
# Parallel execution (when using pytest-xdist)
# addopts = -n auto
# Test timeout (when using pytest-timeout)
timeout = 300
timeout_method = thread
# Ignore paths
norecursedirs =
.git
.tox
dist
build
*.egg
__pycache__
.venv
venv
node_modules
# Filter warnings
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore::FutureWarning:django.*
ignore::pytest.PytestUnraisableExceptionWarning
# Minimum pytest version
minversion = 6.0