diff --git a/.coverage b/.coverage deleted file mode 100644 index c091ac8..0000000 Binary files a/.coverage and /dev/null differ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a2872b9..ce63658 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: diff --git a/Makefile b/Makefile index f00e9cb..5ce68c3 100644 --- a/Makefile +++ b/Makefile @@ -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