You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by ti...@apache.org on 2023/10/18 12:41:56 UTC
[incubator-opendal] branch tisonkun-patch-1 created (now 07314ef22)
This is an automated email from the ASF dual-hosted git repository.
tison pushed a change to branch tisonkun-patch-1
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
at 07314ef22 docs(bindings/java): update how to run behavior test
This branch includes the following new commits:
new 07314ef22 docs(bindings/java): update how to run behavior test
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[incubator-opendal] 01/01: docs(bindings/java): update how to run behavior test
Posted by ti...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch tisonkun-patch-1
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit 07314ef22321ba414b162605319f553763cd2932
Author: tison <wa...@gmail.com>
AuthorDate: Wed Oct 18 20:41:51 2023 +0800
docs(bindings/java): update how to run behavior test
---
bindings/java/README.md | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/bindings/java/README.md b/bindings/java/README.md
index 966acc674..95024d34a 100644
--- a/bindings/java/README.md
+++ b/bindings/java/README.md
@@ -108,9 +108,9 @@ You can apply the code style with the following command::
./mvnw spotless:apply
```
-## Run Service Tests
+## Run behavior tests
-Services tests read necessary configs from env vars or the `.env` file.
+Services behavior tests read necessary configs from env vars or the `.env` file.
You can copy [.env.example](/.env.example) to `${project.rootdir}/.env` and change the values on need, or directly set env vars with `export KEY=VALUE`.
@@ -121,10 +121,10 @@ OPENDAL_TEST=fs
OPENDAL_FS_ROOT=/tmp
```
-You can run service tests of enabled with the following command:
+You can run service behavior tests of enabled with the following command:
```shell
-./mvnw test -Dtest=ServiceBehaviorTest
+./mvnw test -Dtest="behavior.*Test"
```
Remember to enable the necessary features via `-Dcargo-build.features=services-xxx` when running specific service test:
@@ -134,5 +134,5 @@ export OPENDAL_TEST=redis
export OPENDAL_REDIS_ENDPOINT=tcp://127.0.0.1:6379
export OPENDAL_REDIS_ROOT=/
export OPENDAL_REDIS_DB=0
-./mvnw test -Dtest=ServiceBehaviorTest -Dcargo-build.features=services-redis
+./mvnw test -Dtest="behavior.*Test" -Dcargo-build.features=services-redis
```