-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
32 lines (27 loc) · 1.12 KB
/
pytest.ini
File metadata and controls
32 lines (27 loc) · 1.12 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
[pytest]
pythonpath = .
# Specify test directories
testpaths = tests
# Specify test file naming patterns
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Set log level
log_cli = True
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)
log_cli_date_format = %Y-%m-%d %H:%M:%S
# Use the correct coverage package (XML for CI/Codecov; HTML for local drill-down).
# htmlcov/ is overwritten on every run: measuring --cov=tmd while running only a subset
# (e.g. tests/plotters/) produces a low TOTAL in the HTML report. Regenerate the full
# picture with: python -m pytest tests/ -q --cov-report=html
addopts = --strict-markers --cov=tmd --cov-report=term-missing --cov-report=html --cov-report=xml -p no:playwright -v
markers =
slow: long-running or heavy integration tests
optional: requires optional third-party packages (e.g. polyscope, full mesh stack)
cli: Typer/CLI entrypoint and app tests
plot: plotter or GUI-adjacent visualization tests
# Filter warnings
filterwarnings =
ignore::DeprecationWarning:distutils
ignore::UserWarning:plotly