-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest-clean.ini
More file actions
61 lines (52 loc) · 1.35 KB
/
pytest-clean.ini
File metadata and controls
61 lines (52 loc) · 1.35 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
[tool:pytest]
# Pytest configuration for clean test runs with temporary directories
# Test discovery
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Output options
addopts =
--strict-markers
--strict-config
--tb=short
--disable-warnings
--color=yes
--durations=10
# Markers for test categorization
markers =
unit: Unit tests (fast, isolated)
integration: Integration tests (slower, external dependencies)
performance: Performance tests (benchmarks)
slow: Slow tests (may take longer to run)
temp_files: Tests that create temporary files
temp_dirs: Tests that create temporary directories
cleanup: Tests that require special cleanup
# Minimum version requirements
minversion = 6.0
# Test timeout (in seconds)
timeout = 300
# Ignore patterns
norecursedirs =
.git
.tox
dist
build
*.egg
__pycache__
.pytest_cache
htmlcov
.coverage
site
# 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
# Coverage configuration
addopts = --cov=graphflow --cov-report=term-missing --cov-report=html
# Environment variables for tests
env =
GRAPHFLOW_TEST_MODE = true
GRAPHFLOW_TEMP_DIR = {tmpdir}
GRAPHFLOW_CLEANUP = true