From e8cfba1b10206ac4b49172caf8667f12f28b2d40 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Fri, 15 Jan 2021 16:45:37 +0100 Subject: [PATCH] pytest may also be installed as py-test[-3] --- .github/workflows/ci-tests.yml | 2 +- CMakeLists.txt | 2 +- docs/develop/Testing.md | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 99b75f17..8b20b55d 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -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 diff --git a/CMakeLists.txt b/CMakeLists.txt index dd738705..3a9ceed9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/docs/develop/Testing.md b/docs/develop/Testing.md index 6a2becee..e2b01b8d 100644 --- a/docs/develop/Testing.md +++ b/docs/develop/Testing.md @@ -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 -- 2.45.1