fix: adjust path to run only unit tests (#5184)

* fix: adjust path to run only unit tests

* style: split unit test command for readability
This commit is contained in:
Ítalo Johnny 2025-01-08 10:40:08 -03:00 committed by GitHub
commit 93d5a22c56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -153,7 +153,11 @@ unit_tests: ## run unit tests
if [ "$(ff)" = "true" ]; then \
EXTRA_ARGS="$$EXTRA_ARGS --ff"; \
fi; \
uv run pytest src/backend/tests --ignore=src/backend/tests/integration $$EXTRA_ARGS --instafail -ra -m 'not api_key_required' --durations-path src/backend/tests/.test_durations --splitting-algorithm least_duration $(args)
uv run pytest src/backend/tests/unit \
--ignore=src/backend/tests/integration $$EXTRA_ARGS \
--instafail -ra -m 'not api_key_required' \
--durations-path src/backend/tests/.test_durations \
--splitting-algorithm least_duration $(args)
unit_tests_looponfail:
@make unit_tests args="-f"