Skip to content

Commit 549ceb1

Browse files
committed
fix: deselect integration tests in test Makefile command
1 parent 3c9de3d commit 549ceb1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
sync:
55
uv sync
66

7-
# Run tests with coverage
7+
# Run tests with coverage (excludes integration tests)
88
# Usage: make test
99
# To run a specific test: make test TEST=test_file.py::test_function
1010
test:
11-
uv run pytest --cov-report term-missing --cov=openfga_sdk $(if $(TEST),$(TEST),test/)
11+
uv run pytest -m "not integration" --cov-report term-missing --cov=openfga_sdk $(if $(TEST),$(TEST),test/)
1212

1313
test-integration:
1414
uv run pytest -m integration --cov-report term-missing --cov=openfga_sdk $(if $(TEST),$(TEST),test/)
@@ -33,7 +33,8 @@ check: lint fmt test
3333
doc:
3434
@echo "Available targets:"
3535
@echo " sync - Install/update dependencies"
36-
@echo " test - Run tests with coverage (use TEST=path.to.test to run specific tests)"
36+
@echo " test - Run tests with coverage (excludes integration tests, use TEST=path.to.test to run specific tests)"
37+
@echo " test-integration - Run integration tests with coverage"
3738
@echo " lint - Run linter checks"
3839
@echo " fmt - Format code"
3940
@echo " fix - Fix fixable linting and formatting issues"

0 commit comments

Comments
 (0)