Skip to content

Commit

Permalink
infra: add integration_tests and coverage to MAKEFILE (langchain-ai#1…
Browse files Browse the repository at this point in the history
…7053)

- **Description: update community MAKE file** 
    - adds `integration_tests`
    - adds `coverage`

- **Issue:** the issue # it fixes if applicable,
    - moving out of langchain-ai#17014
- **Dependencies:** n/a
- **Twitter handle:** @scottnath
- **Mastodon handle:** [email protected]

---------

Co-authored-by: Bagatur <[email protected]>
  • Loading branch information
scottnath and baskaryan authored Feb 6, 2024
1 parent 9f0b63d commit 10bd901
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions libs/community/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 10bd901

Please sign in to comment.