@@ -85,6 +85,7 @@ see following paragraph):
85
85
``` shell
86
86
task test-integration
87
87
```
88
+
88
89
### Running only some tests
89
90
90
91
By default, all tests from all go packages are run. To run only unit
@@ -136,43 +137,23 @@ your Operating System.
136
137
137
138
Some dependencies need to be installed before running the tests and to avoid
138
139
polluting your global Python environment with dependencies that might be only
139
- used by the Arduino CLI, you can use a [ virtual environment] [ 4 ] . There are many
140
- ways to manage virtual environments, for example you can use a productivity tool
141
- called [ hatch] [ 5 ] . First you need to install it (you might need to ` sudo `
140
+ used by the Arduino CLI, to do so we use [ Poetry] [ poetry-website ] . First you need to install it (you might need to ` sudo `
142
141
the following command):
143
142
144
143
``` shell
145
- pip3 install --user hatch
144
+ pip3 install --user poetry
146
145
```
147
146
148
- Then you can create a virtual environment to be used while working on Arduino
149
- CLI:
150
-
151
- ``` shell
152
- hatch env arduino-cli
153
- ```
147
+ For more installation options read the [ official documentation] [ poetry-docs ] .
154
148
155
- At this point the virtual environment was created and you need to make it active
156
- every time you open a new terminal session with the following command:
157
-
158
- ``` shell
159
- hatch shell arduino-cli
160
- ```
161
-
162
- From now on, every package installed by Python will be confined to the
163
- ` arduino-cli ` virtual environment, so you can proceed installing the
164
- dependencies required with:
165
-
166
- ``` shell
167
- pip install -r test/requirements.txt
168
- ```
169
-
170
- If the last step was successful, you should be able to run the tests with:
149
+ After Poetry has been installed you should be able to run the tests with:
171
150
172
151
``` shell
173
152
task test-integration
174
153
```
175
154
155
+ This will automatically install the necessary dependencies, if not already installed, and run the integration tests automatically.
156
+
176
157
## Working on docs
177
158
178
159
Documentation is provided to final users in form of static HTML content generated
0 commit comments