You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2024/10/05 03:33:53 UTC

(opendal) branch main updated: chore: hint when java tests are skipped (#5158)

This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 4755ebd7ed chore: hint when java tests are skipped (#5158)
4755ebd7ed is described below

commit 4755ebd7ed36cbdb3a46fdd7084d43705dcf0e56
Author: tison <wa...@gmail.com>
AuthorDate: Sat Oct 5 11:33:48 2024 +0800

    chore: hint when java tests are skipped (#5158)
---
 .../java/org/apache/opendal/test/behavior/BehaviorExtension.java    | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/bindings/java/src/test/java/org/apache/opendal/test/behavior/BehaviorExtension.java b/bindings/java/src/test/java/org/apache/opendal/test/behavior/BehaviorExtension.java
index 6a7c33d136..8812f3b4bd 100644
--- a/bindings/java/src/test/java/org/apache/opendal/test/behavior/BehaviorExtension.java
+++ b/bindings/java/src/test/java/org/apache/opendal/test/behavior/BehaviorExtension.java
@@ -73,6 +73,12 @@ public class BehaviorExtension implements BeforeAllCallback, AfterAllCallback, T
                             + "\nTest {} is running."
                             + "\n--------------------------------------------------------------------------------",
                     testName);
+        } else {
+            log.warn(
+                    "\n================================================================================"
+                            + "\nTest {} is skipped because OPENDAL_TEST is not set."
+                            + "\n--------------------------------------------------------------------------------",
+                    context.getDisplayName());
         }
     }