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

zrlw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git


The following commit(s) were added to refs/heads/master by this push:
     new 9302fe263 Set jacoco agent only for test services (#1282)
9302fe263 is described below

commit 9302fe26387fe351b9ef7289c39e9a1b9726d4e2
Author: zrlw <[email protected]>
AuthorDate: Thu Jan 8 13:06:08 2026 +0800

    Set jacoco agent only for test services (#1282)
---
 .../java/org/apache/dubbo/scenario/builder/ConfigurationImpl.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/test/dubbo-scenario-builder/src/main/java/org/apache/dubbo/scenario/builder/ConfigurationImpl.java
 
b/test/dubbo-scenario-builder/src/main/java/org/apache/dubbo/scenario/builder/ConfigurationImpl.java
index 74bfe4e38..d60e20c88 100644
--- 
a/test/dubbo-scenario-builder/src/main/java/org/apache/dubbo/scenario/builder/ConfigurationImpl.java
+++ 
b/test/dubbo-scenario-builder/src/main/java/org/apache/dubbo/scenario/builder/ConfigurationImpl.java
@@ -317,8 +317,8 @@ public class ConfigurationImpl implements IConfiguration {
                     setEnv(service, ENV_WAIT_TIMEOUT, service.getWaitTimeout() 
+ "");
                 }
 
-                // set jacoco
-                if (jacocoEnable) {
+                // set jacoco for test
+                if (jacocoEnable && "test".equals(type)) {
                     //mount ${project.basedir}/target : DUBBO_APP_DIR
                     String jacocoPath = new File(service.getBasedir(), 
"target-jacoco").getCanonicalPath();
                     service.getVolumes().add(jacocoPath + ":" + 
DUBBO_JACOCO_RESULT_DIR);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to