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

14 lines
670 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 classname="<%- testcase.classname %>" name="<%- testcase.name %>" time="<%= testcase.time %>">
<% if (testcase.failureMessage) { %>
<failure><%= testsuite.failureMessage %></failure>
<% } %>
</testcase>
<% }) %>
</testsuite>
<% }) %>
</testsuites>