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 cc3d134ed Show jacoco agent info (#1281)
cc3d134ed is described below
commit cc3d134ed2890cca3cae4f9cdbbebeeb6360ed5f
Author: zrlw <[email protected]>
AuthorDate: Wed Jan 7 03:22:44 2026 +0800
Show jacoco agent info (#1281)
---
.../java/org/apache/dubbo/scenario/builder/JacocoDownloader.java | 3 +++
test/run-tests.sh | 6 ++++++
2 files changed, 9 insertions(+)
diff --git
a/test/dubbo-scenario-builder/src/main/java/org/apache/dubbo/scenario/builder/JacocoDownloader.java
b/test/dubbo-scenario-builder/src/main/java/org/apache/dubbo/scenario/builder/JacocoDownloader.java
index 25c2cbd6c..0bce4c812 100644
---
a/test/dubbo-scenario-builder/src/main/java/org/apache/dubbo/scenario/builder/JacocoDownloader.java
+++
b/test/dubbo-scenario-builder/src/main/java/org/apache/dubbo/scenario/builder/JacocoDownloader.java
@@ -80,12 +80,14 @@ public class JacocoDownloader {
public static void initialize(IConfiguration configuration) {
if (!configuration.enableJacoco()) {
+ LOGGER.info("Disabled JacocoAgent");
return;
}
Path expectedFile = new File(configuration.outputDir() +
File.separator + "jacocoagent.jar").toPath();
// checks the jacoco binary file exists or not
if (checkFile(expectedFile)) {
+ LOGGER.info("Existed JacocoAgent: " + expectedFile);
return;
}
Path temporaryFilePath;
@@ -146,6 +148,7 @@ public class JacocoDownloader {
throw new IllegalArgumentException(String.format("The jacoco
binary archive file doesn't exist, file path:%s", expectedFile));
}
+ LOGGER.info("Downloaded JacocoAgent: " + expectedFile);
}
/**
diff --git a/test/run-tests.sh b/test/run-tests.sh
index 544f775e5..1bea43968 100755
--- a/test/run-tests.sh
+++ b/test/run-tests.sh
@@ -191,6 +191,9 @@ function run_test_with_version_profile() {
mount_msg=`grep mount $scenario_builder_log`
echo "$log_prefix $mount_msg"
+ jacoco_agent_msg=`grep JacocoAgent $scenario_builder_log`
+ echo "$log_prefix $jacoco_agent_msg"
+
# run test
echo "$log_prefix Running test case .."
running_time=$SECONDS
@@ -380,6 +383,9 @@ function process_case() {
mount_msg=`grep mount $scenario_builder_log`
echo "$log_prefix $mount_msg"
+ jacoco_agent_msg=`grep JacocoAgent $scenario_builder_log`
+ echo "$log_prefix $jacoco_agent_msg"
+
# run test
echo "$log_prefix Running test case .."
running_time=$SECONDS
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]