Add plugin="junit" attribute for JUnit plugin
Change-Id: If7191cac2ac6db83e24993f7f65896b89745a878 Signed-off-by: Kien Ha <kienha9922@gmail.com>
This commit is contained in:
parent
fda76531d9
commit
1eec43ff9f
@ -1071,6 +1071,7 @@ def junit(parser, xml_parent, data):
|
||||
"""
|
||||
junitresult = XML.SubElement(xml_parent,
|
||||
'hudson.tasks.junit.JUnitResultArchiver')
|
||||
junitresult.set('plugin', 'junit')
|
||||
XML.SubElement(junitresult, 'testResults').text = data['results']
|
||||
XML.SubElement(junitresult, 'keepLongStdio').text = str(
|
||||
data.get('keep-long-stdio', True)).lower()
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project>
|
||||
<publishers>
|
||||
<hudson.tasks.junit.JUnitResultArchiver>
|
||||
<hudson.tasks.junit.JUnitResultArchiver plugin="junit">
|
||||
<testResults>nosetests.xml</testResults>
|
||||
<keepLongStdio>true</keepLongStdio>
|
||||
<healthScaleFactor>1.0</healthScaleFactor>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project>
|
||||
<publishers>
|
||||
<hudson.tasks.junit.JUnitResultArchiver>
|
||||
<hudson.tasks.junit.JUnitResultArchiver plugin="junit">
|
||||
<testResults>nosetests-example.xml</testResults>
|
||||
<keepLongStdio>false</keepLongStdio>
|
||||
<healthScaleFactor>2.0</healthScaleFactor>
|
||||
|
Loading…
Reference in New Issue
Block a user