Skip to content

Commit

Permalink
Use python3 -m pytest instead of pytest to run the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MayeulRousselet committed Jul 2, 2024
1 parent 055effd commit c574626
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ unit-tests:
pip install --no-cache-dir -r tests/python/unit/requirements.txt; \
pip install --no-cache-dir -r code-env/python/spec/requirements.txt; \
export PYTHONPATH="$(PYTHONPATH):$(PWD)/python-lib"; \
pytest tests/python/unit --alluredir=tests/allure_report || ret=$$?; exit $$ret \
python3 -m pytest tests/python/unit --alluredir=tests/allure_report || ret=$$?; exit $$ret \
)

integration-tests:
Expand All @@ -53,7 +53,7 @@ integration-tests:
source env/bin/activate; \
pip3 install --upgrade pip;\
pip install --no-cache-dir -r tests/python/integration/requirements.txt; \
pytest tests/python/integration --alluredir=tests/allure_report || ret=$$?; exit $$ret \
python3 -m pytest tests/python/integration --alluredir=tests/allure_report || ret=$$?; exit $$ret \
)

tests: unit-tests integration-tests
Expand Down

0 comments on commit c574626

Please sign in to comment.