Skip to content

Commit 2834312

Browse files
authored
Create pytest.ini
1 parent 487119b commit 2834312

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

pytest.ini

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
[pytest]
2+
# Pytest configuration for distributed training framework
3+
4+
# Test discovery
5+
python_files = test_*.py
6+
python_classes = Test*
7+
python_functions = test_*
8+
9+
# Test directories
10+
testpaths = tests
11+
12+
# Markers for test categorization
13+
markers =
14+
slow: marks tests as slow (deselect with '-m "not slow"')
15+
gpu: marks tests that require GPU (deselect with '-m "not gpu"')
16+
distributed: marks tests that require multiple GPUs
17+
integration: marks integration tests
18+
unit: marks unit tests
19+
20+
# Timeout settings
21+
timeout = 300
22+
timeout_method = thread
23+
24+
# Coverage settings
25+
addopts =
26+
--verbose
27+
--strict-markers
28+
--tb=short
29+
--disable-warnings
30+
31+
# Ignore patterns
32+
norecursedirs = .git .tox dist build *.egg __pycache__ .cache
33+
34+
# Logging
35+
log_cli = true
36+
log_cli_level = INFO
37+
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s
38+
log_cli_date_format = %Y-%m-%d %H:%M:%S
39+
40+
# Warnings
41+
filterwarnings =
42+
ignore::DeprecationWarning
43+
ignore::PendingDeprecationWarning

0 commit comments

Comments
 (0)