-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
58 lines (48 loc) · 1.29 KB
/
pytest.ini
File metadata and controls
58 lines (48 loc) · 1.29 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
[tool:pytest]
# Pytest configuration for CLI performance testing
# Test directories
testpaths = tests
# Markers for organizing tests
markers =
benchmark: pytest-benchmark performance tests
memory: memory usage tests
stress: high-load stress tests
reliability: error handling and recovery tests
slow: tests that take a long time to run
network: tests that require network access
integration: integration tests
unit: unit tests
cli: CLI-specific tests
performance: general performance tests
# Default options
addopts =
-v
--strict-markers
--tb=short
--durations=10
--color=yes
# Timeout for long-running tests (10 minutes)
timeout = 600
# Benchmark configuration
benchmark_only = false
benchmark_sort = mean
benchmark_columns = min,max,mean,stddev,median,ops,rounds
benchmark_warmup = true
benchmark_warmup_iterations = 1
benchmark_min_rounds = 3
# Test output
junit_family = xunit2
junit_logging = all
# Coverage configuration (if using pytest-cov)
coverage_fail_under = 80
# Filtering
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore::UserWarning:psutil.*
# Test collection
python_files = test_*.py *_test.py
python_classes = Test* *Tests
python_functions = test_*
# Minimum Python version
minversion = 3.8