Update report template and regenerate report to show untested manifests in processor reports.
--- a/test-suite/reports/index.html Mon Feb 24 17:55:23 2014 -0800
+++ b/test-suite/reports/index.html Thu Feb 27 10:36:12 2014 -0800
@@ -27,7 +27,7 @@
shortName: "json-ld-earl",
//subtitle: "JSON-LD Implementation Conformance Report",
// if you wish the publication date to be other than today, set this
- publishDate: "2014/02/24",
+ publishDate: "2014/02/27",
// if there is a previously published draft, uncomment this and set its YYYY-MM-DD date
// and its maturity status
@@ -123,6 +123,7 @@
td.passed-all {color: green;}
td.passed-most {color: darkorange;}
td.passed-some {color: red;}
+ td.passed-none {color: gray;}
/*]]>*/
</style>
</head>
@@ -35544,6 +35545,22 @@
<tbody>
<tr>
<td>
+ Compaction
+ </td>
+ <td class='passed-none'>
+ Untested
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Error handling
+ </td>
+ <td class='passed-none'>
+ Untested
+ </td>
+ </tr>
+ <tr>
+ <td>
Expansion
</td>
<td class='passed-all'>
@@ -35552,6 +35569,22 @@
</tr>
<tr>
<td>
+ Flattening
+ </td>
+ <td class='passed-none'>
+ Untested
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Remote document
+ </td>
+ <td class='passed-none'>
+ Untested
+ </td>
+ </tr>
+ <tr>
+ <td>
Transform JSON-LD to RDF
</td>
<td class='passed-most'>
@@ -35692,6 +35725,46 @@
<tbody>
<tr>
<td>
+ Compaction
+ </td>
+ <td class='passed-none'>
+ Untested
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Error handling
+ </td>
+ <td class='passed-none'>
+ Untested
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Expansion
+ </td>
+ <td class='passed-none'>
+ Untested
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Flattening
+ </td>
+ <td class='passed-none'>
+ Untested
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Remote document
+ </td>
+ <td class='passed-none'>
+ Untested
+ </td>
+ </tr>
+ <tr>
+ <td>
Transform JSON-LD to RDF
</td>
<td class='passed-most'>
@@ -36164,6 +36237,14 @@
</tr>
<tr>
<td>
+ Remote document
+ </td>
+ <td class='passed-none'>
+ Untested
+ </td>
+ </tr>
+ <tr>
+ <td>
Transform JSON-LD to RDF
</td>
<td class='passed-all'>
--- a/test-suite/reports/template.haml Mon Feb 24 17:55:23 2014 -0800
+++ b/test-suite/reports/template.haml Thu Feb 27 10:36:12 2014 -0800
@@ -124,6 +124,7 @@
td.passed-all {color: green;}
td.passed-most {color: darkorange;}
td.passed-some {color: red;}
+ td.passed-none {color: gray;}
%body{:prefix => "earl: http://www.w3.org/ns/earl# doap: http://usefulinc.com/ns/doap# mf: http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#"}
%section#abstract{:about => tests['@id'], :typeof => Array(tests['@type']).join(" ")}
%p
@@ -291,14 +292,14 @@
%tbody
- tests['entries'].each do |manifest|
- passed = manifest['entries'].select {|t| t['assertions'][index]['result']['outcome'] == 'earl:passed' }.length
- - next if passed == 0
- total = manifest['entries'].length
- pct = (passed * 100.0) / total
+ - cls = (pct == 100.0 ? 'passed-all' : (pct >= 85.0) ? 'passed-most' : (pct == 0.0 ? 'passed-none' : 'passed-some'))
%tr
%td
~ manifest['title']
- %td{:class => (pct == 100.0 ? 'passed-all' : (pct >= 85.0 ? 'passed-most' : 'passed-some'))}
- = "#{passed}/#{total} (#{'%.1f' % pct}%)"
+ %td{:class => cls}
+ = pct == 0.0 ? "Untested" : "#{passed}/#{total} (#{'%.1f' % pct}%)"
- unless tests['assertions'].empty?
%section.appendix{:rel => "earl:assertions"}
%h2