This is about the documentation unit test. The documentation unit test is a test that runs the code in the documentation.
- If you want to run the unit test in python version, you need to install 'pytest' by using the following command:
$ conda install -c anaconda pytest- Modify the file 'CMakelists.txt' to install Cytnx correctly.
- Run the following command to run the unit test:
$ sh build_and_test.shThis command will build the Cytnx and run the unit test for both C++ and python version. The excutable test file is in the following path:
- C++: ./build/test_doc_cplusplus
- python: ./test_doc.py