grunt-contrib-jasmine/tasks/jasmine/templates/JUnit.tmpl

14 lines
730 B
Cheetah
Raw Normal View History

<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>
<% testsuites.forEach(function(testsuite) { %>
<testsuite name="<%- testsuite.name %>" errors="<%= testsuite.errors %>" tests="<%= testsuite.tests %>" failures="<%= testsuite.failures %>" time="<%= testsuite.time %>" timestamp="<%= testsuite.timestamp %>">
<% testsuite.testcases.forEach(function(testcase) { %>
<testcase assertions="<%= testcase.assertions %>" classname="<%- testcase.classname %>" name="<%- testcase.name %>" time="<%= testcase.time %>">
<% testcase.failureMessages.forEach(function(message) { %>
2014-03-27 20:47:45 +08:00
<failure><![CDATA[<%= message %>]]></failure>
<% }) %>
</testcase>
<% }) %>
</testsuite>
<% }) %>
</testsuites>