-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify documentation on runing Earl reports #157
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,14 +44,23 @@ Implementation Report Process | |
As of early 2020, the process to generate an EARL report for the official | ||
`JSON-LD Processor Conformance`_ page is: | ||
|
||
* Check out a local copy of the test suites:: | ||
|
||
> mkdir ../w3c | ||
> cd ../w3c | ||
> git clone https://github.com/w3c/json-ld-api.git | ||
> git clone https://github.com/w3c/json-ld-framing.git | ||
> cd ../pyld | ||
|
||
|
||
* Run the tests on the ``json-ld-api`` and ``json-ld-framing`` test repos to | ||
generate a ``.jsonld`` test report: | ||
|
||
* ``python tests/runtests.py ../json-ld-api/tests/ ../json-ld-framing/tests/ -e pyld-earl.jsonld`` | ||
> ``python tests/runtests.py ..w3c/json-ld-api/tests/ ../w3c/json-ld-framing/tests/ -e pyld-earl.jsonld`` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As stated above, I'm not sure this w3c subdir idea is the best approach. But if so, first path is missing a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll leave it up to you how it should be resolved -- mostly it is just that I went directly to CONTRIBUTING and there wasn't anything that prevented me from interpreting it as asking for the tests to be run against the digitalbazaar tests instead of the W3C. |
||
|
||
* Use the rdf_ tool to generate a ``.ttl``: | ||
|
||
* ``rdf serialize pyld-earl.jsonld --output-format turtle -o pyld-earl.ttl`` | ||
> ``rdf serialize pyld-earl.jsonld --output-format turtle -o pyld-earl.ttl`` | ||
|
||
* Optionally follow the `report instructions`_ to generate the HTML report for | ||
inspection. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it might be better to align with the main README test section for this: https://github.com/digitalbazaar/pyld#tests. The opinionated setup there and in runtests.py is to checkout the test dirs as siblings of pyld. runtests.py defaults to looking for those dirs so you don't have to list them on command line. In the case of EARL report generation, the test dirs are explicit to avoid also running the normalization tests. As is here you'd be instructed to check out dirs in different locations than when running regular tests. Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this could just refer to the readme test section for setup?