Support test trend graph in Build Flow Test Aggregator
Support for configurable test trend graph was added at version 1.2 of https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Test+Aggregator+Plugin. Change-Id: I5d01fe839cfa4f685f36c3ca0d2418691c4b7ec9
This commit is contained in:
parent
12614f13ab
commit
33170e1d19
@ -1959,16 +1959,20 @@ def aggregate_flow_tests(parser, xml_parent, data):
|
|||||||
Requires the Jenkins :jenkins-wiki:`Build Flow Test Aggregator Plugin
|
Requires the Jenkins :jenkins-wiki:`Build Flow Test Aggregator Plugin
|
||||||
<Build+Flow+Test+Aggregator+Plugin>`.
|
<Build+Flow+Test+Aggregator+Plugin>`.
|
||||||
|
|
||||||
|
:arg bool show-test-results-trend: whether to show test results
|
||||||
|
trend graph (default true)
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
.. literalinclude:: \
|
.. literalinclude::
|
||||||
/../../tests/publishers/fixtures/aggregate-flow-tests.yaml
|
/../../tests/publishers/fixtures/aggregate-flow-tests002.yaml
|
||||||
:language: yaml
|
:language: yaml
|
||||||
|
|
||||||
"""
|
"""
|
||||||
XML.SubElement(xml_parent,
|
agg_flow = XML.SubElement(xml_parent, 'org.zeroturnaround.jenkins.'
|
||||||
'org.zeroturnaround.jenkins.'
|
'flowbuildtestaggregator.FlowTestAggregator')
|
||||||
'flowbuildtestaggregator.FlowTestAggregator')
|
XML.SubElement(agg_flow, 'showTestResultTrend').text = str(
|
||||||
|
data.get('show-test-results-trend', True)).lower()
|
||||||
|
|
||||||
|
|
||||||
def cppcheck(parser, xml_parent, data):
|
def cppcheck(parser, xml_parent, data):
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<project>
|
<project>
|
||||||
<publishers>
|
<publishers>
|
||||||
<org.zeroturnaround.jenkins.flowbuildtestaggregator.FlowTestAggregator/>
|
<org.zeroturnaround.jenkins.flowbuildtestaggregator.FlowTestAggregator>
|
||||||
|
<showTestResultTrend>true</showTestResultTrend>
|
||||||
|
</org.zeroturnaround.jenkins.flowbuildtestaggregator.FlowTestAggregator>
|
||||||
</publishers>
|
</publishers>
|
||||||
</project>
|
</project>
|
8
tests/publishers/fixtures/aggregate-flow-tests002.xml
Normal file
8
tests/publishers/fixtures/aggregate-flow-tests002.xml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<project>
|
||||||
|
<publishers>
|
||||||
|
<org.zeroturnaround.jenkins.flowbuildtestaggregator.FlowTestAggregator>
|
||||||
|
<showTestResultTrend>false</showTestResultTrend>
|
||||||
|
</org.zeroturnaround.jenkins.flowbuildtestaggregator.FlowTestAggregator>
|
||||||
|
</publishers>
|
||||||
|
</project>
|
3
tests/publishers/fixtures/aggregate-flow-tests002.yaml
Normal file
3
tests/publishers/fixtures/aggregate-flow-tests002.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
publishers:
|
||||||
|
- aggregate-flow-tests:
|
||||||
|
show-test-results-trend: false
|
Loading…
Reference in New Issue
Block a user