-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
43 lines (36 loc) · 1.09 KB
/
pytest.ini
File metadata and controls
43 lines (36 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
# pytest Configuration
# pytest.ini
# https://docs.pytest.org/en/stable/how-to/output.html
#
# --showlocals # show local variables in tracebacks
# -l # show local variables (shortcut)
# --capture=tee-sys # capture to logs but also output to sys level streams
# --tb=long # exhaustive, informative traceback formatting
# -vvvvv # not a standard , but may be used for even more detail in certain setups
# --durations=N # show N slowest setup/test durations (N=0 for all)
# --junit-xml=path # create junit-xml style report file at given path
[pytest]
minversion = 8.3.0
addopts =
--showlocals
--capture=tee-sys
-vvvvv
--durations=0
# Coverage
--cov=PythonCode
#--cov-report=html
--cov-report=term-missing
testpaths =
PythonCode
python_files =
test_*.py
Test*.py
python_classes =
Test*
python_functions =
test*
Test*
# https://github.com/pytest-dev/pytest-asyncio/issues/924
# https://pytest-asyncio.readthedocs.io/en/latest/reference/configuration.html
asyncio_mode=auto
asyncio_default_fixture_loop_scope="function"