From a04ecf74e6bb1130df0bdc539d492722cb8a9649 Mon Sep 17 00:00:00 2001 From: Robin De Schepper <robin.deschepper93@gmail.com> Date: Fri, 21 Jan 2022 14:29:17 +0100 Subject: [PATCH] Added local Python testsuite instructions (#1809) --- doc/contrib/test.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/contrib/test.rst b/doc/contrib/test.rst index 54fcc358..0af2c485 100644 --- a/doc/contrib/test.rst +++ b/doc/contrib/test.rst @@ -3,8 +3,9 @@ Tests ===== -C++ tests are located in ``/tests`` and Python (binding) tests in ``/python/test``. -See the documentation on :ref:`building <building>` for the C++ tests and ``/python/test/readme.md`` for the latter. +C++ tests are located in ``/tests`` and Python (binding) tests in +``/python/test``. See the documentation on :ref:`building <building>` for the +C++ tests and ``/python/test/readme.md`` for the latter. Python tests ------------ @@ -18,3 +19,5 @@ mechanism. For tests to be discovered they must meet the following criteria: * The filenames must start with ``test_``. * The test case classes must begin with ``Test``. * The test functions inside the cases must begin with ``test_``. + +To run the tests locally use `python -m unittest` from the `python` directory. -- GitLab