From 93d5a22c5642a6e9d3776f72322d431ef25e3568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8Dtalo=20Johnny?= Date: Wed, 8 Jan 2025 10:40:08 -0300 Subject: [PATCH] fix: adjust path to run only unit tests (#5184) * fix: adjust path to run only unit tests * style: split unit test command for readability --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a7c9612a0..82f13284e 100644 --- a/Makefile +++ b/Makefile @@ -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"