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
-`--jacoco-agent-path` - Only applicable for test coverage for Java projects. You can override the jacoco agent jar by providing its path
235
235
236
+
-`--proto-dir string` - Path of the directory where all protos of a service are located. Used for GRPC test cases to enable better deterministic and proper comparison of protobuf responses.
237
+
238
+
```bash
239
+
keploy test -c "node src/app.js" --proto-dir "./protos"
240
+
```
241
+
242
+
-`--proto-file string` - Path of main proto file. Used for GRPC test cases to enable better deterministic and proper comparison of protobuf responses. Either `--proto-file` or `--proto-dir` must be provided for GRPC tests.
243
+
244
+
```bash
245
+
keploy test -c "node src/app.js" --proto-file "./protos/main.proto"
246
+
```
247
+
248
+
-`--proto-include stringArray` - Path of directories to be included while parsing import statements in proto files. This is optional and used for GRPC test cases when proto files have import dependencies.
249
+
250
+
```bash
251
+
keploy test -c "node src/app.js" --proto-file "./protos/main.proto" --proto-include "./protos/common,./protos/shared"
252
+
```
253
+
254
+
> **Note for GRPC Tests:** When running GRPC test cases, it's recommended to provide proto information using either `--proto-file` or `--proto-dir` flags. If proto information is not provided, Keploy will use basic canonical matching of the protoscopic textual format of GRPC response body, which may be less accurate than proto-based comparison.
255
+
236
256
## [gen](#gen)
237
257
238
258
The `gen` cmd in Keploy allows user to generate unit tests using LLM Models.
0 commit comments