-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
54 lines (46 loc) · 1.09 KB
/
pytest.ini
File metadata and controls
54 lines (46 loc) · 1.09 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
# pytest configuration for sqlBackup project
[tool:pytest]
# Test discovery
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Output options
addopts =
-v
--tb=short
--strict-markers
--disable-warnings
--color=yes
--durations=10
# Coverage options (if pytest-cov is installed)
# addopts =
# -v
# --tb=short
# --strict-markers
# --disable-warnings
# --color=yes
# --durations=10
# --cov=src
# --cov-report=html
# --cov-report=term-missing
# --cov-fail-under=80
# Markers for test categorization
markers =
unit: Unit tests
integration: Integration tests
slow: Slow tests
network: Tests requiring network access
database: Tests requiring database connection
mock: Tests using mocks
# Minimum version
minversion = 6.0
# Filter warnings
filterwarnings =
ignore::UserWarning
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
# Test timeout (if pytest-timeout is installed)
# timeout = 300
# Parallel execution (if pytest-xdist is installed)
# -n auto