ble-reticulum/pytest.ini

53 lines
1.3 KiB
INI
Raw Permalink Normal View History

[pytest]
# Pytest configuration for BLE Interface tests
# Test discovery patterns
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths = tests
# Console output options
console_output_style = progress
addopts =
-v
--strict-markers
--tb=short
--disable-warnings
# Legacy tests with import issues - run explicitly if needed
--ignore=tests/test_bleak_threading_hang.py
--ignore=tests/test_bleak_with_exec_loading.py
--ignore=tests/test_gatt_server.py
--ignore=tests/test_gatt_integration.py
--ignore=tests/test_ble_integration.py
# Asyncio configuration
asyncio_mode = auto
asyncio_default_fixture_loop_scope = function
# Markers for categorizing tests
markers =
unit: Unit tests (fast, no external dependencies)
integration: Integration tests (software-based, no hardware required)
hardware: Tests requiring actual BLE hardware
slow: Slow-running tests (> 5 seconds)
skip_ci: Tests to skip in CI environment
simulation: Multi-device simulation tests
asyncio: Async tests using pytest-asyncio
# Minimum Python version
minversion = 7.0
# Coverage options (if using pytest-cov)
[coverage:run]
source = src/RNS/Interfaces
omit =
*/tests/*
*/test_*.py
[coverage:report]
precision = 2
show_missing = True
skip_covered = False