Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions job_templates/snippet/publisher_xunit.xml.em
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<xunit plugin="xunit@@1.102">
<xunit plugin="xunit@@2.3.8">
<types>
@[for prefix in ['ws/build', 'work space/build space']]@
<CTestType>
Expand Down Expand Up @@ -34,19 +34,14 @@
<thresholds>
<org.jenkinsci.plugins.xunit.threshold.FailedThreshold>
<unstableThreshold>0</unstableThreshold>
<unstableNewThreshold></unstableNewThreshold>
<failureThreshold></failureThreshold>
<failureNewThreshold></failureNewThreshold>
</org.jenkinsci.plugins.xunit.threshold.FailedThreshold>
<org.jenkinsci.plugins.xunit.threshold.SkippedThreshold>
<unstableThreshold></unstableThreshold>
<unstableNewThreshold></unstableNewThreshold>
<failureThreshold></failureThreshold>
<failureNewThreshold></failureNewThreshold>
</org.jenkinsci.plugins.xunit.threshold.SkippedThreshold>
<org.jenkinsci.plugins.xunit.threshold.SkippedThreshold/>
</thresholds>
<thresholdMode>1</thresholdMode>
<extraConfiguration>
<testTimeMargin>3000</testTimeMargin>
<sleepTime>0</sleepTime>
<reduceLog>false</reduceLog>
</extraConfiguration>
<testDataPublishers class="empty-set"/>
</xunit>
4 changes: 4 additions & 0 deletions ros2_batch_job/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,10 @@ def build_and_test(args, job):

print('# BEGIN SUBSECTION: test')

# xunit2 format is needed to make Jenkins xunit plugin 2.x happy
with open('pytest.ini', 'w') as ini_file:
ini_file.write('[pytest]\njunit_family=xunit2')

test_cmd = [
args.colcon_script, 'test',
'--base-paths', '"%s"' % args.sourcespace,
Expand Down