You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# NOTE: remember to check/update pyproject.toml protobuf version to follow https://github.com/grpc/grpc/blob/v{{VERSION GRPC IO TOOL BELLOW}}/tools/distrib/python/grpcio_tools/setup.py
Copy file name to clipboardExpand all lines: README.md
+20-8Lines changed: 20 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,33 +162,45 @@ The following is more information about how to develop this project. Note that d
162
162
### Generating protobufs
163
163
164
164
```sh
165
-
pip3 install -r dev-requirements.txt
166
165
make gen-proto
167
166
```
168
167
169
168
This will download the `orchestrator_service.proto` from the `microsoft/durabletask-protobuf` repo and compile it using `grpcio-tools`. The version of the source proto file that was downloaded can be found in the file `durabletask/internal/PROTO_SOURCE_COMMIT_HASH`.
170
169
171
170
### Running unit tests
172
171
173
-
Unit tests can be run using the following command from the project root. Unit tests _don't_ require a sidecar process to be running.
172
+
Unit tests can be run using the following command from the project root.
173
+
Unit tests _don't_ require a sidecar process to be running.
174
+
175
+
To run on a specific python version (eg: 3.11), run the following command from the project root:
174
176
175
177
```sh
176
-
make test-unit
178
+
tox -e py311
177
179
```
178
180
179
181
### Running E2E tests
180
182
181
-
The E2E (end-to-end) tests require a sidecar process to be running. You can use the Dapr sidecar for this or run a Durable Task test sidecar using the following command:
183
+
The E2E (end-to-end) tests require a sidecar process to be running.
184
+
185
+
For non-multi app activities test you can use the Durable Task test sidecar using the following command:
182
186
183
187
```sh
184
188
go install github.com/dapr/durabletask-go@main
185
189
durabletask-go --port 4001
186
190
```
187
191
188
-
To run the E2E tests, run the following command from the project root:
192
+
Certain aspects like multi-app activities require the full dapr runtime to be running.
193
+
194
+
```shell
195
+
dapr init ||true
196
+
197
+
dapr run --app-id test-app --dapr-grpc-port 4001 --components-path ./examples/components/
198
+
```
199
+
200
+
To run the E2E tests on a specific python version (eg: 3.11), run the following command from the project root:
0 commit comments