From 2ee90c0cead262c495854772a5471ef5aaf71271 Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Fri, 5 Apr 2024 10:52:34 -0700 Subject: [PATCH] add minimum test coverage --- libs/weaviate/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libs/weaviate/Makefile b/libs/weaviate/Makefile index ebc2554..bd8d1cb 100644 --- a/libs/weaviate/Makefile +++ b/libs/weaviate/Makefile @@ -4,9 +4,6 @@ all: help # Define a variable for the test file path. -TEST_FILE ?= tests/unit_tests/ - -integration_test integration_tests: TEST_FILE=tests/integration_tests/ # test: # poetry run pytest $(TEST_FILE) @@ -31,7 +28,14 @@ update-weaviate-image: echo "No update required. Current Weaviate version is already $(LATEST_VERSION)"; \ fi -test tests integration_test integration_tests: update-weaviate-image +TEST_FILE ?= tests/unit_tests/ + +integration_test integration_tests: TEST_FILE=tests/integration_tests/ + +test tests: update-weaviate-image + poetry run pytest $(TEST_FILE) --cov=langchain_weaviate --cov-report term-missing --cov-fail-under=96.44 + +integration_test integration_tests: update-weaviate-image poetry run pytest $(TEST_FILE) --cov=langchain_weaviate --cov-report term-missing ######################