We are upgrading from gradle 2.14.1 and we need to override for the moment the specified reports xml destination due that we need our jenkins pipeline working with the old test results directory for the time being.
However it seems that the documentation in the Gradle Release Notes for Version 3.0 in how to override the test result dir for test.reports.xml.destination
is wrong.
- The properties
test.reports.html
andproject.testReportDir
exists - But there is no such properties
test.reports.xml
orproject.testResultDir
But the property test.reports.junitXml
is available which seems to be the one referenced as test.reports.xml
seems this is a typo.
Gradle Info:
------------------------------------------------------------
Gradle 3.1
------------------------------------------------------------
Build time: 2016-09-19 10:53:53 UTC
Revision: 13f38ba699afd86d7cdc4ed8fd7dd3960c0b1f97
Groovy: 2.4.7
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_92 (Oracle Corporation 25.92-b14)
OS: Mac OS X 10.12 x86_64
Running the code from this basic repo yields the following output:
> ./gradlew
testReportDir => /my/system/path/gradle-print-test-reports-destination-properties/build/reports/tests
reports.html.destination => /my/system/path/gradle-print-test-reports-destination-properties/build/reports/tests/test
reports.junitXml.destination => /my/system/path/gradle-print-test-reports-destination-properties/build/test-results/test
groovy.lang.MissingPropertyException: Could not get unknown property 'testResultDir' for task ':test' of type org.gradle.api.tasks.testing.Test.
groovy.lang.MissingPropertyException: Could not get unknown property 'xml' for ConfigurableReport set.
...