mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-03 19:57:51 +00:00
infra: add integration_tests and coverage to MAKEFILE (#17053)
- **Description: update community MAKE file** - adds `integration_tests` - adds `coverage` - **Issue:** the issue # it fixes if applicable, - moving out of https://github.com/langchain-ai/langchain/pull/17014 - **Dependencies:** n/a - **Twitter handle:** @scottnath - **Mastodon handle:** scottnath@mastodon.social --------- Co-authored-by: Bagatur <baskaryan@gmail.com>
This commit is contained in:
parent
9f0b63dba0
commit
10bd901139
@ -5,11 +5,17 @@ all: help
|
||||
|
||||
# Define a variable for the test file path.
|
||||
TEST_FILE ?= tests/unit_tests/
|
||||
integration_tests: TEST_FILE = tests/integration_tests/
|
||||
|
||||
test:
|
||||
poetry run pytest $(TEST_FILE)
|
||||
# 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 \
|
||||
$(TEST_FILE)
|
||||
|
||||
tests:
|
||||
test tests integration_tests:
|
||||
poetry run pytest $(TEST_FILE)
|
||||
|
||||
test_watch:
|
||||
|
Loading…
Reference in New Issue
Block a user