From 05d5fcfdf89abea0993998689fb8e9a8133b7276 Mon Sep 17 00:00:00 2001 From: "C.J. Jameson" Date: Sat, 23 Sep 2023 19:03:53 -0400 Subject: [PATCH] fix make-coverage local invocation #10941 (#10974) Fix the invocation of `make coverage` in `libs/langchain` Fixes #10941 --- libs/langchain/Makefile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/libs/langchain/Makefile b/libs/langchain/Makefile index 3170d9fca6e..5bfa3391dda 100644 --- a/libs/langchain/Makefile +++ b/libs/langchain/Makefile @@ -7,20 +7,18 @@ all: help # TESTING AND COVERAGE ###################### +# Define a variable for the test file path. +TEST_FILE ?= tests/unit_tests/ + # Run unit tests and generate a coverage report. coverage: poetry run pytest --cov \ --cov-config=.coveragerc \ --cov-report xml \ - --cov-report term-missing:skip-covered + --cov-report term-missing:skip-covered \ + $(TEST_FILE) -# Define a variable for the test file path. -TEST_FILE ?= tests/unit_tests/ - -test: - poetry run pytest --disable-socket --allow-unix-socket $(TEST_FILE) - -tests: +test tests: poetry run pytest --disable-socket --allow-unix-socket $(TEST_FILE) extended_tests: