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

Commit

Permalink
Add coverage to the test suite
Browse files Browse the repository at this point in the history
coverage library has been used to gauge unittest coverage
current test coverage for bridgeql code is 87%
you can just check it with 'make test' command with every change
ref #39

Signed-off-by: Piyus Kumar <piyusk@vmware.com>
  • Loading branch information
piyusql committed Oct 6, 2023
1 parent 223126d commit d260866
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit d260866

Please sign in to comment.