Skip to content

Commit 457ca36

Browse files
authored
Add an option in the gradle.properties for html junit reports (#2777)
1 parent 577e701 commit 457ca36

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

gradle/template.gradle.properties

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@
4949
# tests.minheapsize=512m
5050
# tests.jvmargs=-XX:+UseParallelGC -XX:TieredStopAtLevel=1 -XX:ActiveProcessorCount=1
5151
#
52+
# If you want tests to produce an html report (which intellij provides a clickable link for
53+
# at the end of a failed build) set this to true, defaults to false to save a few seconds.
54+
#
55+
# tests.html=false
56+
#
5257
#################
5358
# Gradle Daemon #
5459
#################
@@ -98,5 +103,8 @@ org.gradle.workers.max=@MAX_WORKERS@
98103
# Maximum number of test JVMs forked per test task.
99104
tests.jvms=@TEST_JVMS@
100105

106+
# By default skip html generation
107+
tests.html=false
108+
101109
# Disable auto JVM provisioning (we don't use toolchains yet but want no surprises).
102110
org.gradle.java.installations.auto-download=false

gradle/testing/defaults-tests.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ allprojects {
153153
}
154154

155155
// Disable HTML report generation. The reports are big and slow to generate.
156-
reports.html.required = false
156+
reports.html.required = Boolean.parseBoolean(providers.gradleProperty("tests.html").getOrElse("false"))
157157

158158
// Set up logging.
159159
testLogging {

0 commit comments

Comments
 (0)