Running Tests

codecov-devel

The package can be tested by running the test scripts, which tests all modules.

Running Tests with pytest

  1. Install pytest-cov:

    python -m pip install pytest-cov
    
  2. Install this package by either of the methods described in the installation instructions.

  1. 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
    
  2. 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:

  1. Clone the source code from the repository:

    git clone https://github.com/ameli/special_functions.git
    
  2. Install tox:

    python -m pip install tox
    
  3. Run tests by

    cd special_functions
    tox