mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-10 12:04:06 +00:00
pytest may also be installed as py-test[-3]
This commit is contained in:
2
.github/workflows/ci-tests.yml
vendored
2
.github/workflows/ci-tests.yml
vendored
@@ -59,7 +59,7 @@ jobs:
|
|||||||
working-directory: test/php
|
working-directory: test/php
|
||||||
|
|
||||||
- name: Python unit tests
|
- name: Python unit tests
|
||||||
run: pytest test/python
|
run: py.test-3 test/python
|
||||||
|
|
||||||
- name: BDD tests
|
- name: BDD tests
|
||||||
run: behave -DREMOVE_TEMPLATE=1 --format=progress3
|
run: behave -DREMOVE_TEMPLATE=1 --format=progress3
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ if (BUILD_TESTS)
|
|||||||
|
|
||||||
find_program(PYTHON_BEHAVE behave)
|
find_program(PYTHON_BEHAVE behave)
|
||||||
find_program(PYLINT NAMES pylint3 pylint)
|
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(PHPCS phpcs)
|
||||||
find_program(PHPUNIT phpunit)
|
find_program(PHPUNIT phpunit)
|
||||||
|
|
||||||
|
|||||||
@@ -49,8 +49,14 @@ to have complete coverage of the Python library in `nominatim`.
|
|||||||
|
|
||||||
To execute the tests run
|
To execute the tests run
|
||||||
|
|
||||||
|
py.test-3 test/python
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
pytest test/python
|
pytest test/python
|
||||||
|
|
||||||
|
The name of the pytest binary depends on your installation.
|
||||||
|
|
||||||
## BDD Functional Tests (`test/bdd`)
|
## BDD Functional Tests (`test/bdd`)
|
||||||
|
|
||||||
Functional tests are written as BDD instructions. For more information on
|
Functional tests are written as BDD instructions. For more information on
|
||||||
|
|||||||
Reference in New Issue
Block a user