Fix EARL reporter

This commit is contained in:
Marcel Otto 2021-12-20 13:43:07 +01:00
parent e2c4728a6d
commit 1d70450855
2 changed files with 123 additions and 110 deletions

View file

@ -9,7 +9,7 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<>
dc:issued "2021-12-20T01:23:18.410439Z"^^xsd:dateTime ;
dc:issued "2021-12-20T12:41:44.424166Z"^^xsd:dateTime ;
foaf:maker <http://marcelotto.net/#me> ;
foaf:primaryTopic <https://hex.pm/packages/rdf> .
@ -48,7 +48,7 @@
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T01:23:18.410439Z"^^xsd:dateTime ;
dc:date "2021-12-20T12:41:44.424166Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
@ -61,7 +61,7 @@
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T01:23:18.410439Z"^^xsd:dateTime ;
dc:date "2021-12-20T12:41:44.424166Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
@ -74,111 +74,7 @@
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T01:23:18.410439Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
earl:test <https://w3c.github.io/rdf-star/tests/nt/syntax#ntriples-star-4>
] .
[
a earl:Assertion ;
earl:assertedBy <http://marcelotto.net/#me> ;
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T01:23:18.410439Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
earl:test <https://w3c.github.io/rdf-star/tests/nt/syntax#ntriples-star-5>
] .
[
a earl:Assertion ;
earl:assertedBy <http://marcelotto.net/#me> ;
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T01:23:18.410439Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
earl:test <https://w3c.github.io/rdf-star/tests/nt/syntax#ntriples-star-bnode-1>
] .
[
a earl:Assertion ;
earl:assertedBy <http://marcelotto.net/#me> ;
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T01:23:18.410439Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
earl:test <https://w3c.github.io/rdf-star/tests/nt/syntax#ntriples-star-bnode-2>
] .
[
a earl:Assertion ;
earl:assertedBy <http://marcelotto.net/#me> ;
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T01:23:18.410439Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
earl:test <https://w3c.github.io/rdf-star/tests/nt/syntax#ntriples-star-nested-1>
] .
[
a earl:Assertion ;
earl:assertedBy <http://marcelotto.net/#me> ;
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T01:23:18.410439Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
earl:test <https://w3c.github.io/rdf-star/tests/nt/syntax#ntriples-star-nested-2>
] .
[
a earl:Assertion ;
earl:assertedBy <http://marcelotto.net/#me> ;
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T01:23:18.410439Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
earl:test <https://w3c.github.io/rdf-star/tests/nt/syntax#ntriples-star-bad-1>
] .
[
a earl:Assertion ;
earl:assertedBy <http://marcelotto.net/#me> ;
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T01:23:18.410439Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
earl:test <https://w3c.github.io/rdf-star/tests/nt/syntax#ntriples-star-bad-2>
] .
[
a earl:Assertion ;
earl:assertedBy <http://marcelotto.net/#me> ;
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T01:23:18.410439Z"^^xsd:dateTime ;
dc:date "2021-12-20T12:41:44.424166Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
@ -191,9 +87,126 @@
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T01:23:18.410439Z"^^xsd:dateTime ;
dc:date "2021-12-20T12:41:44.424166Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
earl:test <https://w3c.github.io/rdf-star/tests/nt/syntax#ntriples-star-bad-4>
] .
[
a earl:Assertion ;
earl:assertedBy <http://marcelotto.net/#me> ;
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T12:41:44.424166Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
earl:test <https://w3c.github.io/rdf-star/tests/nt/syntax#ntriples-star-1>
] .
[
a earl:Assertion ;
earl:assertedBy <http://marcelotto.net/#me> ;
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T12:41:44.424166Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
earl:test <https://w3c.github.io/rdf-star/tests/nt/syntax#ntriples-star-4>
] .
[
a earl:Assertion ;
earl:assertedBy <http://marcelotto.net/#me> ;
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T12:41:44.424166Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
earl:test <https://w3c.github.io/rdf-star/tests/nt/syntax#ntriples-star-5>
] .
[
a earl:Assertion ;
earl:assertedBy <http://marcelotto.net/#me> ;
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T12:41:44.424166Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
earl:test <https://w3c.github.io/rdf-star/tests/nt/syntax#ntriples-star-bnode-1>
] .
[
a earl:Assertion ;
earl:assertedBy <http://marcelotto.net/#me> ;
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T12:41:44.424166Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
earl:test <https://w3c.github.io/rdf-star/tests/nt/syntax#ntriples-star-bnode-2>
] .
[
a earl:Assertion ;
earl:assertedBy <http://marcelotto.net/#me> ;
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T12:41:44.424166Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
earl:test <https://w3c.github.io/rdf-star/tests/nt/syntax#ntriples-star-nested-1>
] .
[
a earl:Assertion ;
earl:assertedBy <http://marcelotto.net/#me> ;
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T12:41:44.424166Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
earl:test <https://w3c.github.io/rdf-star/tests/nt/syntax#ntriples-star-nested-2>
] .
[
a earl:Assertion ;
earl:assertedBy <http://marcelotto.net/#me> ;
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T12:41:44.424166Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
earl:test <https://w3c.github.io/rdf-star/tests/nt/syntax#ntriples-star-bad-1>
] .
[
a earl:Assertion ;
earl:assertedBy <http://marcelotto.net/#me> ;
earl:mode earl:automatic ;
earl:result [
a earl:TestResult ;
dc:date "2021-12-20T12:41:44.424166Z"^^xsd:dateTime ;
earl:outcome earl:passed
] ;
earl:subject <https://hex.pm/packages/rdf> ;
earl:test <https://w3c.github.io/rdf-star/tests/nt/syntax#ntriples-star-bad-2>
] .

View file

@ -105,7 +105,7 @@ defmodule EarlFormatter do
Map.update(
results,
test_suite(test),
RDF.graph(prefixes: @prefixes),
RDF.graph(assertion, prefixes: @prefixes),
&Graph.add(&1, assertion)
)
end