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:
parent
8809128d93
commit
93d5a22c56
1 changed files with 5 additions and 1 deletions
6
Makefile
6
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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue