[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)
    incus: marks incus runtime tests
    k3s: marks k3s runtime tests
    lxc: marks lxc runtime tests

# 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
