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:
Scott Nath 2024-02-05 19:39:55 -05:00 committed by GitHub
parent 9f0b63dba0
commit 10bd901139
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,11 +5,17 @@ all: help
# Define a variable for the test file path. # Define a variable for the test file path.
TEST_FILE ?= tests/unit_tests/ TEST_FILE ?= tests/unit_tests/
integration_tests: TEST_FILE = tests/integration_tests/
test: # Run unit tests and generate a coverage report.
poetry run pytest $(TEST_FILE) 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) poetry run pytest $(TEST_FILE)
test_watch: test_watch: