| 1 |
[pytest] |
| 2 |
# Pytest configuration for Fenrir screen reader |
| 3 |
|
| 4 |
# Test discovery patterns |
| 5 |
python_files = test_*.py *_test.py |
| 6 |
python_classes = Test* |
| 7 |
python_functions = test_* |
| 8 |
|
| 9 |
# Test paths |
| 10 |
testpaths = tests |
| 11 |
|
| 12 |
# Minimum Python version |
| 13 |
minversion = 3.7 |
| 14 |
|
| 15 |
# Output options |
| 16 |
addopts = |
| 17 |
# Verbose output with test names |
| 18 |
-v |
| 19 |
# Show extra test summary info |
| 20 |
-ra |
| 21 |
# Enable strict markers (only registered markers allowed) |
| 22 |
--strict-markers |
| 23 |
# Show local variables in tracebacks |
| 24 |
--showlocals |
| 25 |
# Warnings configuration |
| 26 |
-W ignore::DeprecationWarning |
| 27 |
# Optional plugins (uncomment if installed): |
| 28 |
# --timeout=30 # Requires pytest-timeout |
| 29 |
# --cov-report=term-missing # Requires pytest-cov |
| 30 |
# -x # Stop on first failure |
| 31 |
|
| 32 |
# Register custom markers |
| 33 |
markers = |
| 34 |
unit: Unit tests (fast, no mocking) |
| 35 |
integration: Integration tests (require mocking) |
| 36 |
driver: Driver tests (require root access) |
| 37 |
slow: Tests that take more than 1 second |
| 38 |
remote: Tests for remote control functionality |
| 39 |
settings: Tests for settings and configuration |
| 40 |
commands: Tests for command system |
| 41 |
vmenu: Tests for VMenu system |
| 42 |
|
| 43 |
# Coverage configuration |
| 44 |
[coverage:run] |
| 45 |
source = src/fenrirscreenreader |
| 46 |
omit = |
| 47 |
*/tests/* |
| 48 |
*/vmenu-profiles/* |
| 49 |
*/__pycache__/* |
| 50 |
*/site-packages/* |
| 51 |
|
| 52 |
[coverage:report] |
| 53 |
# Fail if coverage falls below this percentage |
| 54 |
# fail_under = 70 |
| 55 |
exclude_lines = |
| 56 |
# Standard pragma |
| 57 |
pragma: no cover |
| 58 |
# Don't complain about missing debug code |
| 59 |
def __repr__ |
| 60 |
# Don't complain if tests don't hit defensive assertion code |
| 61 |
raise AssertionError |
| 62 |
raise NotImplementedError |
| 63 |
# Don't complain about abstract methods |
| 64 |
@abstractmethod |
| 65 |
# Don't complain about initialization |
| 66 |
if __name__ == .__main__.: |
| 67 |
|
| 68 |
[coverage:html] |
| 69 |
directory = htmlcov |