pytest may also be installed as py-test[-3]

This commit is contained in:
Sarah Hoffmann 2021-01-15 16:45:37 +01:00
parent 496a3d29db
commit e8cfba1b10
3 changed files with 8 additions and 2 deletions

View File

@ -59,7 +59,7 @@ jobs:
working-directory: test/php
- name: Python unit tests
run: pytest test/python
run: py.test-3 test/python
- name: BDD tests
run: behave -DREMOVE_TEMPLATE=1 --format=progress3

View File

@ -142,7 +142,7 @@ if (BUILD_TESTS)
find_program(PYTHON_BEHAVE behave)
find_program(PYLINT NAMES pylint3 pylint)
find_program(PYTEST pytest)
find_program(PYTEST NAMES pytest py.test-3 py.test)
find_program(PHPCS phpcs)
find_program(PHPUNIT phpunit)

View File

@ -49,8 +49,14 @@ to have complete coverage of the Python library in `nominatim`.
To execute the tests run
py.test-3 test/python
or
pytest test/python
The name of the pytest binary depends on your installation.
## BDD Functional Tests (`test/bdd`)
Functional tests are written as BDD instructions. For more information on