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

Fix the invocation of `make coverage` in `libs/langchain`

Fixes #10941
This commit is contained in:
C.J. Jameson 2023-09-23 19:03:53 -04:00 committed by GitHub
parent 040d436b3f
commit 05d5fcfdf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: