From 10bd9011390e9f2bf43f6103ea81afd6ccf80bfa Mon Sep 17 00:00:00 2001 From: Scott Nath Date: Mon, 5 Feb 2024 19:39:55 -0500 Subject: [PATCH] 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 --- libs/community/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/libs/community/Makefile b/libs/community/Makefile index d7bda9945aa..acec04864a6 100644 --- a/libs/community/Makefile +++ b/libs/community/Makefile @@ -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: