From 38e96ab9cb7c9aca4e38b917a3d2288473d557bb Mon Sep 17 00:00:00 2001 From: Luke Marsden Date: Wed, 3 Mar 2021 08:58:05 +0000 Subject: [PATCH] Add comment to Makefile to explain multiple pytest runs --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 221639c..d8e62b7 100644 --- a/Makefile +++ b/Makefile @@ -67,7 +67,10 @@ sast: .venv ## run static application security testing checklicenses: .venv requirements.txt ## check dependencies meet licence rules poetry run liccheck -s liccheck.ini -test: .venv ## run tests quickly with the default Python +## run tests quickly with the default Python +## Multiple pytest runs are necessary as once the gsfpy package has been loaded for a +## specific version of GSF, or with a custom shared object library, it cannot be unloaded. +test: .venv poetry run pytest --ignore-glob=tests/gsfpy3_08/* --ignore-glob=tests/gsfpy3_09/* --ignore-glob=tests/gsfpy/test_gsffile_with_*.py --verbose --capture=no poetry run pytest --ignore-glob=tests/gsfpy3_08/* --ignore-glob=tests/gsfpy3_09/* --ignore-glob=tests/gsfpy/test_gsffile.py --verbose --capture=no poetry run pytest tests/gsfpy3_08/test_libgsf_load_valid.py --verbose --capture=no