PageRenderTime 27ms CodeModel.GetById 12ms app.highlight 7ms RepoModel.GetById 2ms app.codeStats 0ms

/testability-explorer/src/main/resources/com/google/test/metric/report/html/Report.html

http://testability-explorer.googlecode.com/
HTML | 101 lines | 87 code | 12 blank | 2 comment | 0 complexity | f8916fa1ef7505aa6b2bde8f5db7e49b MD5 | raw file
  1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
  2   "http://www.w3.org/TR/html4/strict.dtd">
  3<html lang="en">
  4<head>
  5  <#include "../costDetailBox.html" />
  6  <title>${message("report.title")}</title>
  7  <link href="../te.css" rel="stylesheet" type="text/css">
  8  <style type="text/css">
  9    <#include "../te.css"/>
 10  </style>
 11  <script type="text/javascript">
 12    <#include "report.js"/>
 13  </script>
 14</head>
 15<body>
 16<h1>${message("report.title")}</h1>
 17
 18<div id="timestamp">
 19  ${message("report.timestamp", now)}
 20</div>
 21
 22<div style="margin-top: 32px;">
 23  <div style="padding-bottom: 24px; font-weight: bold; font-size: 120%">Overall score:
 24         <span style="font-weight: normal">${overall}</span></div>
 25  <div style="float: left;">
 26    ${pieChart}
 27  </div>
 28  <div style="float: left;">
 29    ${overallChart}
 30  </div>
 31  <div class="overview">
 32    <#if total gt 0>
 33      <table class="overview_table">
 34        <tr>
 35          <th>Analyzed classes</th>
 36          <th class="value">${total}</th>
 37          <th class="percent">&nbsp;</th>
 38        </tr>
 39        <tr>
 40          <td> - Excellent</td>
 41          <td class="value">${excellentCount}</td>
 42          <td class="percent">${(excellentCount / total)?string.percent}</td>
 43        </tr>
 44
 45        <tr>
 46          <td> - Good</td>
 47          <td class="value">${goodCount}</td>
 48          <td class="percent">${(goodCount / total)?string.percent}</td>
 49        </tr>
 50        <tr>
 51          <td> - Needs work</td>
 52          <td class="value">${needsWorkCount}</td>
 53          <td class="percent">${(needsWorkCount / total)?string.percent}</td>
 54        </tr>
 55      </table>
 56    <#else/>
 57      Total score is zero - were any classes analyzed??
 58    </#if>
 59  </div>
 60
 61  <div style="clear:both; width: 0">&nbsp;</div>
 62</div>
 63
 64<div style="margin-bottom: 32px; margin-left: 32px; margin-top: 16px;">
 65  ${histogram}
 66</div>
 67
 68<h2 style="margin-bottom: 12px;">Issues that cause the most untestable classes</h2>
 69
 70<#list worstOffenders as classIssues>
 71  <div class="classExplanation">
 72    <#assign numConstructionIssues = classIssues.constructionIssues?keys?size />
 73    <#assign numCollaboratorIssues = classIssues.collaboratorIssues?keys?size />
 74    <#assign numDirectCostIssues = classIssues.directCostIssues?keys?size />
 75
 76    <div class="cost">Cost: ${classIssues.totalCost}</div>
 77    <p class="header">${message("report.explain.class.hardToTest", "<tt>", classIssues.className, "</tt>")} </p>
 78
 79    <#if numConstructionIssues != 0>
 80      <p class="issueType header">${message("report.explain.class.construction")}</p>
 81      <@costDetailBox classIssues.constructionIssues "construction"/>
 82    </#if>
 83
 84    <#if numCollaboratorIssues != 0>
 85      <p class="issueType header">${message("report.explain.class.collaborator")}</p>
 86      <@costDetailBox classIssues.collaboratorIssues "collaborator" />
 87    </#if>
 88
 89    <#if numDirectCostIssues != 0>
 90      <p class="issueType header">${message("report.explain.class.directCost")}</p>
 91      <@costDetailBox classIssues.directCostIssues "directCost" />
 92    </#if>
 93
 94    <!--input type="button" value="Show more suggestions"/><br/-->
 95    <!--p>${message("report.explain.class.benefits", "<b>", 0.00, "</b>")}</p-->
 96  </div>
 97</#list>
 98<div class="copyright">
 99  <a href="http://testabilityexplorer.org">http://testabilityexplorer.org</a></div>
100</body>
101</html>