The easiest way to get started is using the development container, which includes all dependencies pre-installed:
- Install Docker and VS Code
- Install the Dev Containers extension
- Open this project in VS Code
- Click "Reopen in Container" when prompted (or press F1 and select "Dev Containers: Reopen in Container")
- Wait for the container to build (first time takes ~10-15 minutes)
- Start developing! All dependencies are ready to use.
See .devcontainer/README.md for more details.
If you prefer to set up the environment manually:
cargo build
GraphBLAS & RediSearch must be built and installed before building this project.
- building GraphBLAS
./graphblas.sh
``
or
```bash
make static CMAKE_OPTIONS='-DGRAPHBLAS_COMPACT=1 -DCMAKE_POSITION_INDEPENDENT_CODE=on'
sudo make install- building RediSearch
./redisearch.sh- pytest - create virtualenv and install tests/requirements.txt
The virtual environment should be activated before running tests.
python3 -m venv venv
source venv/bin/activate
pip install -r tests/requirements.txt- run e2e tests with
pytest tests/test_e2e.py tests/test_functions.py -vv - run tck tests with
pytest tests/tck/test_tck.py -s
There is an option to run only part of the TCK tests and stop on the first fail
TCK_INCLUDE=tests/tck/features/expressions/list pytest tests/tck/test_tck.py -sTo run all passing TCK tests use:
TCK_DONE=tck_done.txt pytest tests/tck/test_tck.py -s-
run unit tests with
cargo test -p graph