Skip to content

Clarify documentation on runing Earl reports - #157

Closed
hsolbrig wants to merge 2 commits into
digitalbazaar:masterfrom
hsolbrig:issue_156
Closed

Clarify documentation on runing Earl reports#157
hsolbrig wants to merge 2 commits into
digitalbazaar:masterfrom
hsolbrig:issue_156

Conversation

@hsolbrig

Copy link
Copy Markdown

fixes issue #156

Comment thread CONTRIBUTING.rst
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::

Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Member

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?

Comment thread CONTRIBUTING.rst Outdated
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``

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The 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 /.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The 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.

Fixed typo in path
@BigBlueHat

Copy link
Copy Markdown
Contributor

Closing in favor of #182

@BigBlueHat BigBlueHat closed this Feb 5, 2024
@davidlehn

Copy link
Copy Markdown
Member

@BigBlueHat I don't think #182 addresses #156 as was the intent here. But it does change what the docs might say. I'll note it there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants