Unit Testing

Unit tests are run automatically using GitHub actions, but you can run them locally by following the instructions below.

Running HDP Unit Tests

Unit tests are provided in hdp/tests and can be run using PyTest. A developer environment configuration is provided in environment.yml to quickly run these tests. Start by cloning the GitHub repository and navigating into the directory:

git clone https://github.com/AgentOxygen/HDP.git
cd HDP

Then create the conda environment and load it into the shell:

conda env create --file=environment.yml
conda activate hdp_dev

Install the HDP from source and then run the tests using PyTest:

pip install -e .
pytest hdp/tests