Skip to content

Commit

Permalink
add PYTEST_ARGS option to Makefile, e.g. make test PYTEST_ARGS=-v
Browse files Browse the repository at this point in the history
  • Loading branch information
mattf committed Aug 8, 2024
1 parent 432baa3 commit 9fbdd1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/ai-endpoints/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ all: help
TEST_FILE ?= tests/unit_tests/

test:
poetry run pytest $(TEST_FILE)
poetry run pytest $(PYTEST_ARGS) $(TEST_FILE)

tests:
poetry run pytest $(TEST_FILE)
poetry run pytest $(PYTEST_ARGS) $(TEST_FILE)

check_imports: $(shell find langchain_nvidia_ai_endpoints -name '*.py')
poetry run python ./scripts/check_imports.py $^

integration_tests:
poetry run pytest tests/integration_tests
poetry run pytest tests/integration_tests $(PYTEST_ARGS)


######################
Expand Down

0 comments on commit 9fbdd1b

Please sign in to comment.