earl-report 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/VERSION +1 -1
- data/bin/earl-report +2 -0
- data/lib/earl_report.rb +7 -0
- data/spec/test-files/results.html +10 -10
- data/spec/test-files/results.jsonld +1 -1
- data/spec/test-files/results.ttl +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db739ef98aaf6d8ce76e793057d5cdabdfaee7a9
|
|
4
|
+
data.tar.gz: b5a224f7c5af327cfbea8d7d947a374b512f6a6a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5556e589606ff22f62440de4e5981b87c495a3446ce38ace08e1c4879b020b648fa058cc68c5a30816154682b86cde5f7e95d89947f1546ff3cc76ae999a69f0
|
|
7
|
+
data.tar.gz: 315cb136dd11906ee1ceaa693b400fb10acd0062c82d8815f19a8e7cff41ffee9fe364e89443a74d381d1e4c0f9360c9eaf49dcb6ac060848926d4d478ae46a5
|
data/README.md
CHANGED
|
@@ -12,8 +12,7 @@ HTML+RDFa in [ReSpec][] format.
|
|
|
12
12
|
|
|
13
13
|
## Individual EARL reports
|
|
14
14
|
Results for individual implementations should be specified in Turtle form, but
|
|
15
|
-
may be specified in an any compatible RDF serialization
|
|
16
|
-
be a cached rollup report). The report is composed of `Assertion` declarations
|
|
15
|
+
may be specified in an any compatible RDF serialization. The report is composed of `Assertion` declarations
|
|
17
16
|
in the following form:
|
|
18
17
|
|
|
19
18
|
[ a earl:Assertion;
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.6
|
data/bin/earl-report
CHANGED
|
@@ -25,6 +25,8 @@ def usage
|
|
|
25
25
|
earl-report version #{EarlReport::VERSION}
|
|
26
26
|
Generate EARL report for mutliple test results against a test manifest.
|
|
27
27
|
|
|
28
|
+
See http://gkellogg.github.io/earl-report/ for assumptions on individual reports and test manifests.
|
|
29
|
+
|
|
28
30
|
Options are initialized by reading optional run-control file '.earl' in the local directory,
|
|
29
31
|
if it exists.
|
|
30
32
|
|
data/lib/earl_report.rb
CHANGED
|
@@ -395,6 +395,13 @@ class EarlReport
|
|
|
395
395
|
# Collect each TestCase
|
|
396
396
|
solution_list.each do |uri|
|
|
397
397
|
solution = solutions[uri]
|
|
398
|
+
|
|
399
|
+
unless solution
|
|
400
|
+
$stderr.puts "Expected to find solution for #{uri}\n"
|
|
401
|
+
"Results are found using the following query, this can be overridden using the --query option:\n" +
|
|
402
|
+
"#{@options[:query]}"
|
|
403
|
+
next
|
|
404
|
+
end
|
|
398
405
|
|
|
399
406
|
# Create entry for this test case, if it doesn't already exist
|
|
400
407
|
tc = man_info['entries'].detect {|t| t['@id'] == uri}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
shortName: "turtle-earl",
|
|
28
28
|
subtitle: "Turtle Implementation Conformance Report",
|
|
29
29
|
// if you wish the publication date to be other than today, set this
|
|
30
|
-
publishDate: "2015/05/
|
|
30
|
+
publishDate: "2015/05/24",
|
|
31
31
|
|
|
32
32
|
// if there is a previously published draft, uncomment this and set its YYYY-MM-DD date
|
|
33
33
|
// and its maturity status
|
|
@@ -173,12 +173,12 @@
|
|
|
173
173
|
</span>
|
|
174
174
|
</td>
|
|
175
175
|
</tr>
|
|
176
|
-
<tr inlist='inlist' rel='mf:entries' resource='_:
|
|
176
|
+
<tr inlist='inlist' rel='mf:entries' resource='_:g70114604698720' typeof='earl:TestCriterion earl:TestCase http://www.w3.org/ns/rdftest#TestTurtleEval'>
|
|
177
177
|
<td>
|
|
178
|
-
<a href='#
|
|
178
|
+
<a href='#test_d0c563a61deb019c499849ef841596b8'>subm-test-01</a>
|
|
179
179
|
</td>
|
|
180
180
|
<td class='UNTESTED' inlist='inlist' property='earl:assertions' typeof='earl:Assertion'>
|
|
181
|
-
<link href='_:
|
|
181
|
+
<link href='_:g70114604698720' property='earl:test' />
|
|
182
182
|
<link href='http://rubygems.org/gems/rdf-turtle' property='earl:subject' />
|
|
183
183
|
<link href='earl:notAvailable' property='earl:mode' />
|
|
184
184
|
<span property='earl:result' typeof='earl:TestResult'>
|
|
@@ -284,11 +284,11 @@
|
|
|
284
284
|
<pre class='example actionDoc' property='mf:action' resource='http://example/test-00.ttl' title='subm-test-00 Input'>http://example/test-00.ttl not loaded</pre>
|
|
285
285
|
<pre class='example resultDoc' property='mf:result' resource='http://example/test-00.out' title='subm-test-00 Result'>http://example/test-00.out not loaded</pre>
|
|
286
286
|
</dd>
|
|
287
|
-
<dt id='
|
|
287
|
+
<dt id='test_d0c563a61deb019c499849ef841596b8' resource='_:g70114604698720'>
|
|
288
288
|
Test
|
|
289
289
|
<span property='dc:title mf:name'>subm-test-01</span>
|
|
290
290
|
</dt>
|
|
291
|
-
<dd resource='_:
|
|
291
|
+
<dd resource='_:g70114604698720'>
|
|
292
292
|
<p lang='en' property='dc:description'>@prefix and qnames</p>
|
|
293
293
|
<pre class='example actionDoc' property='mf:action' resource='http://example/test-01.ttl' title='subm-test-01 Input'>http://example/test-01.ttl not loaded</pre>
|
|
294
294
|
<pre class='example resultDoc' property='mf:result' resource='http://example/test-01.out' title='subm-test-01 Result'>http://example/test-01.out not loaded</pre>
|
|
@@ -306,10 +306,10 @@
|
|
|
306
306
|
<meta content='Earl Report summary generator' lang='en' property='doap:shortdesc' />
|
|
307
307
|
<meta content='EarlReport generates HTML+RDFa rollups of multiple EARL reports' lang='en' property='doap:description' />
|
|
308
308
|
version
|
|
309
|
-
<span property='doap:release' resource='https://github.com/gkellogg/earl-report/tree/0.3.
|
|
310
|
-
<span property='doap:revision'>0.3.
|
|
311
|
-
<meta content='earl-report-0.3.
|
|
312
|
-
<meta content='
|
|
309
|
+
<span property='doap:release' resource='https://github.com/gkellogg/earl-report/tree/0.3.5' typeof='doap:Version'>
|
|
310
|
+
<span property='doap:revision'>0.3.5</span>
|
|
311
|
+
<meta content='earl-report-0.3.5' property='doap:name' />
|
|
312
|
+
<meta content='2015-05-18' datatype='xsd:date' property='doap:created' />
|
|
313
313
|
</span>
|
|
314
314
|
an
|
|
315
315
|
<a href='http://unlicense.org' property='doap:license'>Unlicensed</a>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"@context":{"@vocab":"http://www.w3.org/ns/earl#","foaf:homepage":{"@type":"@id"},"dc":"http://purl.org/dc/terms/","doap":"http://usefulinc.com/ns/doap#","earl":"http://www.w3.org/ns/earl#","mf":"http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#","foaf":"http://xmlns.com/foaf/0.1/","rdfs":"http://www.w3.org/2000/01/rdf-schema#","assertedBy":{"@type":"@id"},"assertions":{"@type":"@id","@container":"@list"},"bibRef":{"@id":"dc:bibliographicCitation"},"created":{"@id":"doap:created","@type":"xsd:date"},"description":{"@id":"dc:description","@language":"en"},"developer":{"@id":"doap:developer","@type":"@id","@container":"@set"},"doapDesc":{"@id":"doap:description","@language":"en"},"generatedBy":{"@type":"@id"},"homepage":{"@id":"doap:homepage","@type":"@id"},"label":{"@id":"rdfs:label","@language":"en"},"language":{"@id":"doap:programming-language"},"license":{"@id":"doap:license","@type":"@id"},"mode":{"@type":"@id"},"name":{"@id":"doap:name"},"outcome":{"@type":"@id"},"release":{"@id":"doap:release","@type":"@id"},"shortdesc":{"@id":"doap:shortdesc","@language":"en"},"subject":{"@type":"@id"},"test":{"@type":"@id"},"testAction":{"@id":"mf:action","@type":"@id"},"testResult":{"@id":"mf:result","@type":"@id"},"entries":{"@id":"mf:entries","@type":"@id","@container":"@list"},"testSubjects":{"@type":"@id","@container":"@list"},"title":{"@id":"dc:title"},"xsd":{"@id":"http://www.w3.org/2001/XMLSchema#"}},"@id":"","@type":["earl:Software","doap:Project"],"name":"Turtle Test Results","bibRef":"[[TURTLE]]","generatedBy":{"@id":"http://rubygems.org/gems/earl-report","@type":"doap:Project","name":"earl-report","shortdesc":"Earl Report summary generator","doapDesc":"EarlReport generates HTML+RDFa rollups of multiple EARL reports","homepage":"https://github.com/gkellogg/earl-report","language":"Ruby","license":"http://unlicense.org","release":{"@id":"https://github.com/gkellogg/earl-report/tree/0.3.
|
|
1
|
+
{"@context":{"@vocab":"http://www.w3.org/ns/earl#","foaf:homepage":{"@type":"@id"},"dc":"http://purl.org/dc/terms/","doap":"http://usefulinc.com/ns/doap#","earl":"http://www.w3.org/ns/earl#","mf":"http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#","foaf":"http://xmlns.com/foaf/0.1/","rdfs":"http://www.w3.org/2000/01/rdf-schema#","assertedBy":{"@type":"@id"},"assertions":{"@type":"@id","@container":"@list"},"bibRef":{"@id":"dc:bibliographicCitation"},"created":{"@id":"doap:created","@type":"xsd:date"},"description":{"@id":"dc:description","@language":"en"},"developer":{"@id":"doap:developer","@type":"@id","@container":"@set"},"doapDesc":{"@id":"doap:description","@language":"en"},"generatedBy":{"@type":"@id"},"homepage":{"@id":"doap:homepage","@type":"@id"},"label":{"@id":"rdfs:label","@language":"en"},"language":{"@id":"doap:programming-language"},"license":{"@id":"doap:license","@type":"@id"},"mode":{"@type":"@id"},"name":{"@id":"doap:name"},"outcome":{"@type":"@id"},"release":{"@id":"doap:release","@type":"@id"},"shortdesc":{"@id":"doap:shortdesc","@language":"en"},"subject":{"@type":"@id"},"test":{"@type":"@id"},"testAction":{"@id":"mf:action","@type":"@id"},"testResult":{"@id":"mf:result","@type":"@id"},"entries":{"@id":"mf:entries","@type":"@id","@container":"@list"},"testSubjects":{"@type":"@id","@container":"@list"},"title":{"@id":"dc:title"},"xsd":{"@id":"http://www.w3.org/2001/XMLSchema#"}},"@id":"","@type":["earl:Software","doap:Project"],"name":"Turtle Test Results","bibRef":"[[TURTLE]]","generatedBy":{"@id":"http://rubygems.org/gems/earl-report","@type":"doap:Project","name":"earl-report","shortdesc":"Earl Report summary generator","doapDesc":"EarlReport generates HTML+RDFa rollups of multiple EARL reports","homepage":"https://github.com/gkellogg/earl-report","language":"Ruby","license":"http://unlicense.org","release":{"@id":"https://github.com/gkellogg/earl-report/tree/0.3.5","@type":"doap:Version","name":"earl-report-0.3.5","created":"2015-05-18","revision":"0.3.5"},"developer":{"@type":"foaf:Person","@id":"http://greggkellogg.net/foaf#me","foaf:name":"Gregg Kellogg","foaf:homepage":"http://greggkellogg.net/"}},"assertions":["/Users/gregg/Projects/earl-report/spec/test-files/report-complete.ttl"],"testSubjects":[{"@id":"http://rubygems.org/gems/rdf-turtle","@type":["earl:TestSubject","doap:Project"],"name":"RDF::Turtle","developer":[{"@type":"foaf:Person","@id":"http://greggkellogg.net/foaf#me","foaf:name":"Gregg Kellogg","foaf:homepage":"http://greggkellogg.net/"}],"doapDesc":"RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite.","homepage":"http://ruby-rdf.github.com/rdf-turtle","language":"Ruby"}],"entries":[{"@id":"http://example/manifest.ttl","@type":["earl:Report","mf:Manifest"],"entries":[{"@id":"http://example/manifest.ttl#testeval00","@type":["earl:TestCriterion","earl:TestCase","http://www.w3.org/ns/rdftest#TestTurtleEval"],"title":"subm-test-00","testAction":"http://example/test-00.ttl","assertions":[{"@type":"earl:Assertion","test":"http://example/manifest.ttl#testeval00","subject":"http://rubygems.org/gems/rdf-turtle","mode":"earl:automatic","result":{"@type":"earl:TestResult","outcome":"earl:passed"},"assertedBy":"http://greggkellogg.net/foaf#me"}],"description":"Blank subject","testResult":"http://example/test-00.out"},{"@id":"_:g70114599241260","@type":["earl:TestCriterion","earl:TestCase","http://www.w3.org/ns/rdftest#TestTurtleEval"],"title":"subm-test-01","testAction":"http://example/test-01.ttl","assertions":[{"@type":"earl:Assertion","test":"_:g70114599241260","subject":"http://rubygems.org/gems/rdf-turtle","mode":"earl:notAvailable","result":{"@type":"earl:TestResult","outcome":"earl:untested"}}],"description":"@prefix and qnames","testResult":"http://example/test-01.out"}],"title":"Example Test Cases","description":"Description for Example Test Cases"}]}
|
data/spec/test-files/results.ttl
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
doap:homepage <https://github.com/gkellogg/earl-report>;
|
|
30
30
|
doap:programming-language "Ruby";
|
|
31
31
|
doap:license <http://unlicense.org>;
|
|
32
|
-
doap:release <https://github.com/gkellogg/earl-report/tree/0.3.
|
|
32
|
+
doap:release <https://github.com/gkellogg/earl-report/tree/0.3.5>;
|
|
33
33
|
doap:developer <http://greggkellogg.net/foaf#me> .
|
|
34
34
|
|
|
35
35
|
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
rdfs:comment "Description for Example Test Cases";
|
|
42
42
|
mf:entries (
|
|
43
43
|
<http://example/manifest.ttl#testeval00>
|
|
44
|
-
_:
|
|
44
|
+
_:g70114599373060) .
|
|
45
45
|
|
|
46
46
|
#
|
|
47
47
|
# Subject Definitions
|
|
@@ -76,14 +76,14 @@
|
|
|
76
76
|
earl:result [ a earl:TestResult; earl:outcome earl:passed ]]
|
|
77
77
|
) .
|
|
78
78
|
|
|
79
|
-
_:
|
|
79
|
+
_:g70114599373060 a earl:TestCriterion, earl:TestCase, <http://www.w3.org/ns/rdftest#TestTurtleEval>;
|
|
80
80
|
dc:title "subm-test-01";
|
|
81
81
|
dc:description "@prefix and qnames"@en;
|
|
82
82
|
mf:result <http://example/test-01.out>;
|
|
83
83
|
mf:action <http://example/test-01.ttl>;
|
|
84
84
|
earl:assertions (
|
|
85
85
|
[ a earl:Assertion;
|
|
86
|
-
earl:test _:
|
|
86
|
+
earl:test _:g70114599373060;
|
|
87
87
|
earl:subject <http://rubygems.org/gems/rdf-turtle>;
|
|
88
88
|
earl:mode earl:notAvailable;
|
|
89
89
|
earl:result [ a earl:TestResult; earl:outcome earl:untested ]]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: earl-report
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gregg Kellogg
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-05-
|
|
11
|
+
date: 2015-05-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: linkeddata
|
|
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
202
202
|
version: '0'
|
|
203
203
|
requirements: []
|
|
204
204
|
rubyforge_project:
|
|
205
|
-
rubygems_version: 2.4.
|
|
205
|
+
rubygems_version: 2.4.7
|
|
206
206
|
signing_key:
|
|
207
207
|
specification_version: 4
|
|
208
208
|
summary: Earl Report summary generator
|