From 9abb0dd46d53090fa5669ed5d1f9da1bcda84c14 Mon Sep 17 00:00:00 2001 From: heck Date: Wed, 11 Nov 2020 16:49:31 +0100 Subject: [PATCH] 'make test' and 'make install-test' independent --- Makefile | 3 ++- docs/source/install.rst | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e57f2a3..c8b5a0d 100644 --- a/Makefile +++ b/Makefile @@ -58,7 +58,8 @@ install-test: compile pip3 install .[test] # TODO: maybe use setup.py test? -test: install-test +# --forked, because every test needs a separate process, see PYADPT-100 +test: pytest --forked diff --git a/docs/source/install.rst b/docs/source/install.rst index b3696d0..1fd1408 100644 --- a/docs/source/install.rst +++ b/docs/source/install.rst @@ -73,12 +73,16 @@ To install the extension module into your home dir, use: Test ---- -To run the whole testsuite you need to create/activate the venv, and then invoke the make target 'test'. -You can do this from a clean clone of the repo, no prior actions required, the whole module and all dependencies -will be compiled and installed into the venv. +To run the whole testsuite you need to first create/activate the venv: ``make venv`` +then install the test-dependencies: + +``make install-test`` + +And finally run the test-suite: + ``make test``