Configurable<Report>
, ConfigurableReport
, DirectoryReport
, Report
public interface JUnitXmlReport extends DirectoryReport
TestTaskReports.getJunitXml()
Report.OutputType
Modifier and Type | Method | Description |
---|---|---|
Property<Boolean> |
getMergeReruns() |
Whether reruns or retries of a test should be merged into a combined testcase.
|
boolean |
isOutputPerTestCase() |
Should the output be associated with individual test cases instead of at the suite level.
|
void |
setOutputPerTestCase(boolean outputPerTestCase) |
Should the output be associated with individual test cases instead of at the suite level.
|
configure
setDestination, setDestination, setEnabled, setEnabled
getEntryPoint, getOutputLocation, getOutputType
getDestination, getDisplayName, getName, getRequired, isEnabled
@Input boolean isOutputPerTestCase()
void setOutputPerTestCase(boolean outputPerTestCase)
@Input Property<Boolean> getMergeReruns()
<flakyFailure>
instead of <failure>
, within one <testcase>
.
This can be important for build tooling that uses this XML to understand test results,
and where distinguishing such passed-on-retry outcomes is important.
This is the case for the Jenkins CI server and its Flaky Test Handler plugin.
This value defaults to false
, causing each test execution to be a discrete <testcase>
.