Skip to content

Commit d17e8c2

Browse files
committed
CHORE: Adds test coverage reports
1 parent dc4cea7 commit d17e8c2

File tree

34 files changed

+1096
-29
lines changed

34 files changed

+1096
-29
lines changed

.DS_Store

6 KB
Binary file not shown.

.coveragerc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[run]
2+
omit =
3+
**/__init__.py
4+
**/tests/*
5+
dist/*
6+
.venv/*

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ venv.bak/
2121
# test environments
2222
.env
2323

24+
.coverage
25+
htmlcov/

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,15 @@ test:
4949
@for dir in $(SUBDIRS); do \
5050
if [ -f $$dir/pyproject.toml ]; then \
5151
echo "Testing $$dir"; \
52-
cd $$dir && uv sync && uv run pytest -vv && cd ../..; \
52+
cd $$dir && \
53+
COVERAGE_FILE=../../.coverage.$$(_basename=$$(basename $$dir); echo $$_basename) \
54+
uv run pytest --cov=. --cov-branch --cov-append --cov-report=html --cov-config=../../.coveragerc && \
55+
cd ../..; \
5356
fi \
5457
done
58+
uv run coverage combine
59+
uv run coverage html
60+
uv run coverage report --fail-under=70
5561

5662
format:
5763
uv tool run --from 'tox==4.30.2' tox -e format

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
-r requirements.txt
22
pytest
33
pytest-asyncio
4+
pytest-cov
45
tox
56
tomlq
67
uv

src/.DS_Store

6 KB
Binary file not shown.

src/oci-api-mcp-server/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,6 @@ packages = ["oracle"]
3535
dev = [
3636
"pytest>=8.4.2",
3737
"pytest-asyncio>=1.2.0",
38+
"pytest-cov>=7.0.0",
3839
]
40+

src/oci-api-mcp-server/uv.lock

Lines changed: 78 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/oci-compute-instance-agent-mcp-server/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,6 @@ packages = ["oracle"]
3535
dev = [
3636
"pytest>=8.4.2",
3737
"pytest-asyncio>=1.2.0",
38+
"pytest-cov>=7.0.0",
3839
]
40+

src/oci-compute-instance-agent-mcp-server/uv.lock

Lines changed: 77 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)