We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc3a271 commit 39f493dCopy full SHA for 39f493d
1 file changed
share/junit.xml.ejs
@@ -4,10 +4,12 @@
4
<testsuite name="<%= suite.name %>"
5
errors="<%= suite.errorCount %>"
6
failures="<%= suite.failureCount %>"
7
- tests="<%= suite.tests %>">
8
- <% for (var j=0; j < suite.testcases.length; j++) { %>
9
- <% var testcase=suites[i].testcases[j]; %>
10
- <testcase name="<%= testcase.name %>">
+ tests="<%= suite.tests %>"
+ time="<%= (suite.end - suite.start)/1000 %>"
+ >
+ <% for (var testCaseName in suite.testcases) { %>
11
+ <% var testcase=suite.testcases[testCaseName]; %>
12
+ <testcase name="<%= testcase.name %>" time="<%= (testcase.end - testcase.start)/1000 %>">
13
<% if (testcase.failure) { %>
14
<failure message="<%= testcase.failure.message %>">
15
<% if (testcase.failure.backtrace) { %><%= testcase.failure.backtrace %><% } %>
0 commit comments