Skip to content

Commit 10bd901

Browse files
scottnathbaskaryan
andauthored
infra: add integration_tests and coverage to MAKEFILE (langchain-ai#17053)
- **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:** scottnath@mastodon.social --------- Co-authored-by: Bagatur <baskaryan@gmail.com>
1 parent 9f0b63d commit 10bd901

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

libs/community/Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ all: help
55

66
# Define a variable for the test file path.
77
TEST_FILE ?= tests/unit_tests/
8+
integration_tests: TEST_FILE = tests/integration_tests/
89

9-
test:
10-
poetry run pytest $(TEST_FILE)
10+
# Run unit tests and generate a coverage report.
11+
coverage:
12+
poetry run pytest --cov \
13+
--cov-config=.coveragerc \
14+
--cov-report xml \
15+
--cov-report term-missing:skip-covered \
16+
$(TEST_FILE)
1117

12-
tests:
18+
test tests integration_tests:
1319
poetry run pytest $(TEST_FILE)
1420

1521
test_watch:

0 commit comments

Comments
 (0)