Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup/local_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ def show_help():


# Script entry point - handles command-line arguments
if __name__ == "__main__":
if __name__ == "__main__": # pragma: no cover
# Parse command-line arguments for different setup modes
if len(sys.argv) > 1:
command = sys.argv[1]
Expand Down
2 changes: 1 addition & 1 deletion setup/verify_local_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,5 +334,5 @@ def main():
return passed == total


if __name__ == "__main__":
if __name__ == "__main__": # pragma: no cover
sys.exit(0 if main() else 1)
8 changes: 5 additions & 3 deletions tests/python/.coveragerc
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
[run]
branch = True
source =
source =
shared/python
omit =
setup
omit =
*/__init__.py
*/__pycache__/*
tests/python/*

[report]
show_missing = True
skip_covered = True
skip_covered = False
3 changes: 2 additions & 1 deletion tests/python/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ markers =
slow: tests that take a long time to run
unit: marks tests as unit tests
http: marks tests that mock or use HTTP
testpaths = .
testpaths =
tests/python
python_files =
test_*.py
2 changes: 1 addition & 1 deletion tests/python/run_tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $env:PYTHONUNBUFFERED = "1"
Push-Location $RepoRoot
try {
$env:COVERAGE_FILE = (Join-Path $RepoRoot ".coverage")
pytest -v --color=yes --durations=3 --durations-min=0.1 --cov=shared/python --cov-config=tests/python/.coveragerc --cov-report=html:tests/python/htmlcov --cov-report=xml:coverage.xml --cov-report=json:coverage.json tests/python/
pytest -v --color=yes --durations=3 --durations-min=0.1 --cov --cov-config=tests/python/.coveragerc --cov-report=html:tests/python/htmlcov --cov-report=xml:coverage.xml --cov-report=json:coverage.json tests/python/

# Display coverage summary
Write-Host "`nCoverage Summary:" -ForegroundColor Green
Expand Down
2 changes: 1 addition & 1 deletion tests/python/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ REPO_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
cd "${REPO_ROOT}"

export COVERAGE_FILE=".coverage"
pytest -v --color=yes --durations=3 --durations-min=0.1 --cov=shared/python --cov-config=tests/python/.coveragerc --cov-report=html:tests/python/htmlcov --cov-report=xml:coverage.xml --cov-report=json:coverage.json tests/python/
pytest -v --color=yes --durations=3 --durations-min=0.1 --cov --cov-config=tests/python/.coveragerc --cov-report=html:tests/python/htmlcov --cov-report=xml:coverage.xml --cov-report=json:coverage.json tests/python/

# Display coverage summary
echo ""
Expand Down
Loading
Loading