Running Tests
The package can be tested by running the test scripts, which tests all modules.
Running Tests with pytest
Install
pytest-cov
:python -m pip install pytest-cov
Install this package by either of the methods described in the installation instructions.
Clone the package source code and install the test dependencies:
git clone https://github.com/ameli/special_functions.git cd special_functions python -m pip install -r tests/requirements.txt
Test the package by:
cd tests pytest
Warning
Do not run tests in the root directory of the package
/special_functions
. To properly run tests, change current working directory to/special_functions/tests
sub-directory.
Running Tests with tox
To run a test in a virtual environment, use tox
as follows:
Clone the source code from the repository:
git clone https://github.com/ameli/special_functions.git
Install
tox
:python -m pip install tox
Run tests by
cd special_functions tox