brew-test-bot: improve JUnit output for Jenkins.
This commit is contained in:
parent
254b2b9daf
commit
edbc0fadd1
@ -3,11 +3,14 @@
|
||||
<% tests.each do |test| %>
|
||||
<testsuite name="brew-test-bot.<%= test.name %>" tests="<%= test.steps.count %>">
|
||||
<% test.steps.each do |step| %>
|
||||
<testcase name="<%= step.command %>" status="<%= step.status %>" time="<%= step.time %>">
|
||||
<testcase name="<%= step.command_short %>" status="<%= step.status %>" time="<%= step.time %>">
|
||||
<% if step.has_output? %>
|
||||
<% if step.failed? %>
|
||||
<failure message="<%= step.status %>: <%= step.command %>"><![CDATA[<%= step.output %>]]></failure>
|
||||
<% else %>
|
||||
<system-out><![CDATA[<%= step.output %>]]></system-out>
|
||||
<% end %>
|
||||
<% if step.failed? %>
|
||||
<% elsif step.failed? %>
|
||||
<failure />
|
||||
<% end %>
|
||||
</testcase>
|
||||
|
Loading…
x
Reference in New Issue
Block a user