-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathpytest.ini
More file actions
47 lines (39 loc) · 1.01 KB
/
pytest.ini
File metadata and controls
47 lines (39 loc) · 1.01 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
[tool:pytest]
# pytest configuration file
# Test discovery
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Output format and verbosity
addopts =
-v
--tb=short
--strict-markers
--strict-config
--capture=no
--color=yes
--durations=10
# Markers
markers =
slow: slow tests (require long time to run)
unit: unit tests
integration: integration tests
excel: Excel data related tests
csv: CSV data related tests
# Minimum version
minversion = 6.0
# Filter warnings
filterwarnings =
ignore::UserWarning
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
# 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
# Parallel testing (if pytest-xdist is installed)
# addopts = -n auto
# Coverage report (if pytest-cov is installed)
# addopts = --cov=hydromodel_dev --cov-report=html --cov-report=term-missing