Skip to content

Commit 35666c6

Browse files
committed
Added support for coverage report generation
1 parent d7e0fc6 commit 35666c6

File tree

5 files changed

+54
-30
lines changed

5 files changed

+54
-30
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ env.bak/
1010
venv.bak/
1111

1212
# Python uv
13-
uv.lock
1413
.python-version
1514

1615
# VScode
@@ -21,3 +20,4 @@ uv.lock
2120

2221
# test environments
2322
.env
23+
.coverage

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ 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 && cd ../..; \
52+
cd $$dir && uv sync && uv run coverage run -m pytest && coverage html && cd ../..; \
5353
fi \
5454
done
5555

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ pytest-asyncio
44
tox
55
tomlq
66
uv
7+
coverage

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

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

0 commit comments

Comments
 (0)