|
4 | 4 |
|
5 | 5 | To run the unit tests, you must follow the steps below:
|
6 | 6 |
|
7 |
| -1. Create a virtual environment. |
| 7 | +### Create a virtual environment. |
8 | 8 |
|
9 | 9 | ```bash
|
10 | 10 | python -m venv .venv
|
11 | 11 | source .venv/bin/activate
|
12 | 12 | ```
|
13 | 13 |
|
14 |
| -2. Install the dependencies. |
| 14 | +### Install the dependencies. |
15 | 15 |
|
16 | 16 | ```bash
|
17 | 17 | pip install -r requirements-dev.txt
|
18 | 18 | ```
|
19 | 19 |
|
20 |
| -3. Have a running IRIS instance. |
| 20 | +### Have a running IRIS instance. |
21 | 21 |
|
22 | 22 | Here you can choose between:
|
23 | 23 |
|
24 | 24 | - Local installation of IRIS
|
25 | 25 | - Docker installation of IRIS
|
26 | 26 |
|
27 |
| -### Local installation of IRIS |
| 27 | +#### Local installation of IRIS |
28 | 28 |
|
29 |
| -1. Install IRIS locally. |
| 29 | +##### Install IRIS locally. |
30 | 30 |
|
31 | 31 | - [Local installation of IRIS](https://docs.intersystems.com/irislatest/csp/docbook/Doc.View.cls?KEY=PAGE_deployment_install)
|
32 | 32 | - [Python interpreter compatible with the version of IRIS](https://docs.intersystems.com/iris20243/csp/docbook/Doc.View.cls?KEY=GEPYTHON_prereqs#GEPYTHON_prereqs_version)
|
33 | 33 | - [Iris embedded python wrapper](https://github.com/grongierisc/iris-embedded-python-wrapper)
|
34 | 34 | - Make sure to follow the [instructions to install the wrapper in your IRIS instance.](https://github.com/grongierisc/iris-embedded-python-wrapper?tab=readme-ov-file#pre-requisites)
|
35 | 35 |
|
36 | 36 |
|
37 |
| -2. Then, symbolically this git to the IRIS pyhton directory: |
| 37 | +##### Set up the IRIS instance. |
| 38 | + |
| 39 | +Then, symbolically this git to the IRIS pyhton directory: |
38 | 40 |
|
39 | 41 | ```bash
|
40 | 42 | ln -s <your_git_dir>/src/iop $IRISINSTALLDIR/python/iop
|
41 | 43 | ```
|
42 | 44 |
|
43 |
| -3. Run the unit tests. |
| 45 | +##### Run the unit tests. |
44 | 46 |
|
45 | 47 | ```bash
|
46 | 48 | pytest
|
47 | 49 | ```
|
48 | 50 |
|
49 |
| -### Docker installation of IRIS |
| 51 | +#### Docker installation of IRIS |
50 | 52 |
|
51 | 53 | No prerequisites are needed. Just run the following command:
|
52 | 54 |
|
|
0 commit comments