Skip to content

The agent engineering platform.

fix make-coverage local invocation #10941 (#10974)

C.J. Jameson05d5fcfdf89a
diff --git a/libs/langchain/Makefile b/libs/langchain/Makefile
index 3170d9fca6..5bfa3391dd 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
-
-# Define a variable for the test file path.
-TEST_FILE ?= tests/unit_tests/
-
-test:
- poetry run pytest --disable-socket --allow-unix-socket $(TEST_FILE)
+ --cov-report term-missing:skip-covered \
+ $(TEST_FILE)
-tests:
+test tests:
poetry run pytest --disable-socket --allow-unix-socket $(TEST_FILE)
extended_tests: