Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Add coverage to the test suite #40

Merged
merged 1 commit into from
Oct 6, 2023
Merged
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
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ PY_VERSION := "python3.9"
PY_BINARY := $(shell which $(PY_VERSION))
VENV_DIR := $(PROJECT_ROOT)/venv
PYTHONPATH := $(VENV_DIR)/lib/$(PY_VERSION)/site-packages
COVERAGE := $(VENV_DIR)/bin/coverage

default: install

Expand All @@ -16,7 +17,8 @@ test: install
@echo "--------------------------------------------------"
@source env.sh && \
cd $(PROJECT_ROOT)/tests/server && \
$(PY_BINARY) manage.py test -v2
$(COVERAGE) run --source="../../bridgeql" manage.py test -v2 && \
$(COVERAGE) report

install: $(VENV_DIR)
@echo "\nInstalling all required packages"
Expand Down
Loading