Skip to content

Commit

Permalink
Updated the coverage report scope to remove test files
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-au-922 committed Dec 2, 2023
1 parent e7d667a commit 1290ec4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Binary file removed .coverage
Binary file not shown.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ jobs:
- name: Generate coverage report
run: |
coverage report -m
coverage html --omit="*/test*"
coverage html --omit="*/tests/*"
- name: upload artifact
uses: actions/upload-pages-artifact@v1
with:
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ test_consumer:
export RABBITMQ_PASSWORD=$(RABBITMQ_PASSWORD) && \
export QUEUE_NAME=$(QUEUE_NAME) && \
COVERAGE_FILE=.coverage_consumer coverage run -m pytest -vx consumer/tests
coverage_report:
coverage combine .coverage_producer .coverage_consumer && \
coverage report -m --omit="*/tests/*"
test: test_producer test_consumer coverage_report

0 comments on commit 1290ec4

Please sign in to comment.