Run HTTomo tests#
After installing HTTomo, you can quickly verify that the installation and all required dependencies are working correctly by running the test suite.
Git clone the HTTomo repository
git clone https://github.com/DiamondLightSource/httomo.git.Install the testing dependencies:
conda install -c conda-forge pytest pytest-cov pytest-xdist pytest-mock plumbum.Run the CPU test suite. Navigate to the root directory of the HTTomo repository and run:
pytest tests/. This executes the CPU-only tests for the HTTomo framework.Run the GPU test suite (CUDA-enabled systems only). If you have a CUDA-compatible GPU, run:
pytest tests/ --cupy.Run the small dataset pipeline tests.
pytest tests/ --small_data. These tests execute example pipelines using a small test dataset. On systems without a CUDA-compatible GPU, some tests are expected to fail. However, if TomoPy is installed, the TomoPy pipeline test should pass successfully.