Skip to content

Commit aff6cf1

Browse files
ludochgae-java-bot
authored andcommitted
Suppress JaCoCo output in App Engine tests.
PiperOrigin-RevId: 882650414 Change-Id: I72e1179c04caac00c9d7ff09cc9e31389bd7cdd5
1 parent eb3a383 commit aff6cf1

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

lib/tools_api/src/test/java/com/google/appengine/tools/KickStartTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ private List<String> runWithKickStart(File webInfDir) throws IOException, Interr
165165
ImmutableList<String> args =
166166
ImmutableList.of(
167167
javaBinary,
168+
"-Djacoco-agent.output=none",
168169
"-classpath",
169170
classpath,
170171
"--add-opens",
@@ -174,6 +175,7 @@ private List<String> runWithKickStart(File webInfDir) throws IOException, Interr
174175
"--add-opens",
175176
"java.base/sun.net.www.protocol.https=ALL-UNNAMED",
176177
KickStart.class.getName(),
178+
"--jvm_flag=-Djacoco-agent.output=none",
177179
"--test_mode",
178180
"com.google.appengine.tools.PrintDefaultCharset",
179181
webInfDir.getPath());

lib/xml_validator_test/src/test/java/com/google/appengine/tools/admin/XmlValidatorTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public class XmlValidatorTest {
100100
@Before
101101
public void setUp() throws Exception {
102102
xmlValidatorJar = getLibXmlValidatorJarFile();
103-
assertWithMessage(xmlValidatorJar.toString() + " error, cannot read the jar.")
103+
assertWithMessage("%s error, cannot read the jar.", xmlValidatorJar.toString())
104104
.that(xmlValidatorJar.canRead())
105105
.isTrue();
106106
}
@@ -153,6 +153,7 @@ private void validate(boolean shouldPass, TestXml... testXmls)
153153
String javaBin = JAVA_HOME.value() + "/bin/java";
154154
List<String> args = new ArrayList<>();
155155
args.add(javaBin);
156+
args.add("-Djacoco-agent.output=none");
156157
args.add("-verbose:class");
157158
args.add("-classpath");
158159
args.add(xmlValidatorJar.getAbsolutePath());

runtime/test/src/test/java/com/google/apphosting/runtime/jetty9/JavaRuntimeViaHttpBase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ public <ApiServerT extends Closeable> RuntimeContext<ApiServerT> createRuntimeCo
263263
}
264264
baseArgsBuilder
265265
.add(
266+
"-Djacoco-agent.output=none",
266267
"-Dcom.google.apphosting.runtime.jetty94.LEGACY_MODE=" + legacyMode,
267268
"-Dappengine.use.EE8=" + jakartaVersion.equals("EE8"),
268269
"-Dappengine.use.EE10=" + jakartaVersion.equals("EE10"),

0 commit comments

Comments
 (0)