Files
kicad-mcp-server/pytest.ini
Eugene Mikhantyev 5de932e2b3 refactor: consolidate python/tests/ into tests/ directory
Move all Python test files from python/tests/ to the top-level tests/
directory to match the project's CONTRIBUTING.md guidelines. Update
sys.path inserts and template path references to reflect the new
location.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 11:22:39 +01:00

53 lines
1.0 KiB
INI

[pytest]
# Pytest configuration for KiCAD MCP Server
# Test discovery patterns
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths = tests
# Minimum Python version
minversion = 6.0
# Additional options
addopts =
-ra
--strict-markers
--strict-config
--showlocals
--tb=short
--cov=python
--cov-report=term-missing
--cov-report=html
--cov-report=xml
--cov-branch
# Markers for organizing tests
markers =
unit: Unit tests (fast, no external dependencies)
integration: Integration tests (requires KiCAD)
slow: Slow-running tests
linux: Linux-specific tests
windows: Windows-specific tests
macos: macOS-specific tests
# Ignore patterns
norecursedirs = .git .tox dist build *.egg node_modules
# Coverage settings
[coverage:run]
source = python
omit =
*/tests/*
*/test_*.py
*/__pycache__/*
*/site-packages/*
[coverage:report]
precision = 2
show_missing = True
skip_covered = False