summaryrefslogtreecommitdiffstats
path: root/tests/pytest.ini
blob: b0a51f7e6415fb42b77c6dd797f88ebf3b5c4f8c (plain)
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
[pytest]
testpaths = .
python_files = test_*.py
python_classes = Test*
python_functions = test_*

# Markers
markers =
    slow: marks tests as slow (deselect with '-m "not slow"')
    memres: marks tests that require memory resident mode
    network: marks tests that require network access
    boot: marks tests that boot a full QEMU image (requires pexpect)

# Default options - include junit xml for CI and detailed output
addopts = -v --tb=short --junitxml=/tmp/pytest-results.xml

# Log file for test output (always written, survives test runs)
log_file = /tmp/pytest-vcontainer.log
log_file_level = DEBUG
log_file_format = %(asctime)s %(levelname)s %(message)s
log_file_date_format = %Y-%m-%d %H:%M:%S

# Also show logs on console during test run
log_cli = false
log_cli_level = INFO

# Ignore warnings from subprocess
filterwarnings =
    ignore::DeprecationWarning