Skip to content

The agent engineering platform.

infra: add integration_tests and coverage to MAKEFILE (#17053)

Scott Nath10bd9011390e
diff --git a/libs/community/Makefile b/libs/community/Makefile
index d7bda9945a..acec04864a 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: