Adding and running tests
A high-quality suite of tests is crucial in ensuring correctness and robustness of the codebase. Here, we provide instructions how to run unit tests, and also how to add a new one.
Contents
Adding a new unit test
Python package: pytest
Add your test under the directories
tests/python-gpu/ (if you are testing GPU code)
tests/test_distributed. (if a distributed framework is used)
Refer to the PyTest tutorial to learn how to write tests for Python code.
You may try running your test by following instructions in this section.
C++: Google Test
Add your test under the directory tests/cpp/. Refer to .