-
-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathpytest.toml
More file actions
38 lines (37 loc) · 1.4 KB
/
pytest.toml
File metadata and controls
38 lines (37 loc) · 1.4 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
# ---------------------------------------------------> pytest.toml <---------------------------------------------------
# pytest - Makes it easy to write small tests, yet scales to support complex functional testing for apps and libraries.
# https://docs.pytest.org/en/latest/reference/customize.html
# https://docs.pytest.org/en/latest/reference/reference.html
[pytest]
minversion = "9.0.2"
# Keep imports simple (src/ layout)
pythonpath = ["src"]
# Only look here for tests
testpaths = ["tests", "examples/src"]
python_files = ["test_*.py"]
# Fail on most warnings
filterwarnings = ["error"] # equals: -W error
# pytest-asyncio
asyncio_mode = "auto"
# Custom markers
markers = ["memory: marks tests as memory-focused (deselect with '-m \"not memory\"')"]
# Sets the console output style while running tests.
console_output_style = "times"
addopts = [
"-rfEsxXp",
"--new-first",
"--no-header",
"--color=yes",
# TODO -> Uncomment this line, when https://github.com/ipython/ipython/issues/14620 is solved:
# "--pdbcls=IPython.terminal.debugger:Pdb",
]
# Set directory basename patterns to skip during test discovery recursion; fnmatch patterns match directory basenames.
norecursedirs = [
"tests/benchmarks",
"tests/templates",
]
# https://docs.pytest.org/en/latest/reference/reference.html#confval-strict
strict_config = true
strict_markers = true
strict_parametrization_ids = true
strict_xfail = true