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
Copy file name to clipboardExpand all lines: README.md
+21-6Lines changed: 21 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,33 +162,48 @@ 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
165
+
# install dev dependencies for generating protobufs and running tests
166
+
pip3 install '.[dev]'
167
+
166
168
make gen-proto
167
169
```
168
170
169
171
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
172
171
173
### Running unit tests
172
174
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.
175
+
Unit tests can be run using the following command from the project root.
176
+
Unit tests _don't_ require a sidecar process to be running.
177
+
178
+
To run on a specific python version (eg: 3.11), run the following command from the project root:
174
179
175
180
```sh
176
-
make test-unit
181
+
tox -e py311
177
182
```
178
183
179
184
### Running E2E tests
180
185
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:
186
+
The E2E (end-to-end) tests require a sidecar process to be running.
187
+
188
+
For non-multi app activities test you can use the Durable Task test sidecar using the following command:
182
189
183
190
```sh
184
191
go install github.com/dapr/durabletask-go@main
185
192
durabletask-go --port 4001
186
193
```
187
194
188
-
To run the E2E tests, run the following command from the project root:
195
+
Certain aspects like multi-app activities require the full dapr runtime to be running.
196
+
197
+
```shell
198
+
dapr init ||true
199
+
200
+
dapr run --app-id test-app --dapr-grpc-port 4001 --components-path ./examples/components/
201
+
```
202
+
203
+
To run the E2E tests on a specific python version (eg: 3.11), run the following command from the project root:
0 commit comments