From 95c2f9d18d1ad9c6031f521e7762c132ed6c749c Mon Sep 17 00:00:00 2001 From: GD <gd.dev@libertymail.net> Date: Wed, 9 Mar 2022 11:56:25 +0100 Subject: [PATCH] document test run from command line using installed package --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4db3155..3f49b09 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Manipulated objects are imported from numpy and scipy. Matrices should be stored ### Testing the interface -- From the command line (in the project root directory): +- From the command line (to be called from the project root directory): ```bash python tests/test_spams.py -h # print the man page python tests/test_spams.py # run all the tests @@ -65,6 +65,12 @@ test_spams(['sort', 'calcAAt']) # run specific tests test_spams(python_exec='python3') # specify the python exec ``` +- From the command line (assuming `spams` package is installed): +```bash +# c.f. previous point for the different options +python -c "from spams.tests import test_spams; test_spams()" +``` + --- ## Links -- GitLab