This is an automated email from the ASF dual-hosted git repository.
gus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/main by this push:
new 457ca3668a8 Add an option in the gradle.properties for html junit
reports (#2777)
457ca3668a8 is described below
commit 457ca3668a8906277f8f638af9c740b57f2a2a20
Author: Gus Heck <[email protected]>
AuthorDate: Wed Oct 23 10:11:28 2024 -0400
Add an option in the gradle.properties for html junit reports (#2777)
---
gradle/template.gradle.properties | 8 ++++++++
gradle/testing/defaults-tests.gradle | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/gradle/template.gradle.properties
b/gradle/template.gradle.properties
index c52e3048a77..79b18753f43 100644
--- a/gradle/template.gradle.properties
+++ b/gradle/template.gradle.properties
@@ -49,6 +49,11 @@
# tests.minheapsize=512m
# tests.jvmargs=-XX:+UseParallelGC -XX:TieredStopAtLevel=1
-XX:ActiveProcessorCount=1
#
+# If you want tests to produce an html report (which intellij provides a
clickable link for
+# at the end of a failed build) set this to true, defaults to false to save a
few seconds.
+#
+# tests.html=false
+#
#################
# Gradle Daemon #
#################
@@ -98,5 +103,8 @@ org.gradle.workers.max=@MAX_WORKERS@
# Maximum number of test JVMs forked per test task.
tests.jvms=@TEST_JVMS@
+# By default skip html generation
+tests.html=false
+
# Disable auto JVM provisioning (we don't use toolchains yet but want no
surprises).
org.gradle.java.installations.auto-download=false
diff --git a/gradle/testing/defaults-tests.gradle
b/gradle/testing/defaults-tests.gradle
index f0af07c81de..6c551df103a 100644
--- a/gradle/testing/defaults-tests.gradle
+++ b/gradle/testing/defaults-tests.gradle
@@ -153,7 +153,7 @@ allprojects {
}
// Disable HTML report generation. The reports are big and slow to
generate.
- reports.html.required = false
+ reports.html.required =
Boolean.parseBoolean(providers.gradleProperty("tests.html").getOrElse("false"))
// Set up logging.
testLogging {