-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathpytest.ini
More file actions
67 lines (55 loc) · 1.99 KB
/
pytest.ini
File metadata and controls
67 lines (55 loc) · 1.99 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
[pytest]
# Global pytest configuration for PyReason test suites
# Python path setup
pythonpath = .
# Test discovery patterns
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Output configuration
addopts =
--tb=short
--color=yes
--durations=10
--showlocals
# Minimum version
minversion = 6.0
# Test markers (register custom markers to avoid warnings)
markers =
slow: marks tests as slow (may be skipped with -m "not slow")
integration: marks tests as integration tests
unit: marks tests as unit tests
api: marks tests as API tests
functional: marks tests as functional/end-to-end tests
jit_disabled: marks tests that require JIT to be disabled
jit_enabled: marks tests that require JIT to be enabled
consistency: marks tests that check consistency between JIT and non-JIT versions
fp: marks tests as fixed point version tests
# Warnings configuration
filterwarnings =
# Ignore specific warnings that are expected in test environment
ignore::UserWarning
ignore::DeprecationWarning:numba.*
ignore::FutureWarning:numba.*
ignore::RuntimeWarning:numba.*
# Allow pytest's own warnings
ignore::pytest.PytestUnraisableExceptionWarning
ignore::pytest.PytestCollectionWarning
# Ignore networkx warnings
ignore::PendingDeprecationWarning:networkx.*
ignore::DeprecationWarning:networkx.*
# Test paths (these will be overridden by the test runner for specific suites)
testpaths = tests
# Logging configuration
log_cli = false
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
# Disable cacheprovider to avoid issues with different test environments
cache_dir = .pytest_cache
# Console output configuration
console_output_style = progress
# Timeout for individual tests (can be overridden per suite)
# timeout = 60 # Disabled for functional tests that may take longer
# JUnit XML output (useful for CI/CD)
junit_family = xunit2