Contributing
Run the unit tests
To run the unit tests, you must follow the steps below:
Create a virtual environment.
python -m venv .venv
source .venv/bin/activate
Install the dependencies.
pip install -r requirements-dev.txt
Have a running IRIS instance.
Here you can choose between:
- Local installation of IRIS
- Docker installation of IRIS
Local installation of IRIS
Install IRIS locally.
- Local installation of IRIS
- Python interpreter compatible with the version of IRIS
- Iris embedded python wrapper
- Make sure to follow the instructions to install the wrapper in your IRIS instance.
Set up the IRIS instance.
Then, symbolically this git to the IRIS pyhton directory:
ln -s <your_git_dir>/src/iop $IRISINSTALLDIR/python/iop
Run the unit tests.
pytest
Docker installation of IRIS
No prerequisites are needed. Just run the following command:
docker build -t pytest-iris -f dockerfile-ci .
docker run -i --rm pytest-iris