graphql-http icon indicating copy to clipboard operation
graphql-http copied to clipboard

externalize audits so they can be run locally and/or within target library CI/CD

Open dariuszkuc opened this issue 3 years ago • 3 comments

Story

As a GraphQL library maintainer I would like to be able to run HTTP spec audit locally to ensure my client/server remains compliant with the spec.

Acceptance criteria

  • GraphQL library maintainer is able to run HTTP spec audit locally

Related

dariuszkuc avatar Jan 25 '23 15:01 dariuszkuc

You already can, see the "Audit for servers usage in Jest environment" recipe.

enisdenjo avatar Jan 25 '23 16:01 enisdenjo

Its doable but somewhat clunky -> it implies folks have to write Javascript to run tests (and many libraries are not Javascript based). Ideally they could just run some executable script that gives them the results*.

*Looks like we would also need to generate the report matrix manually as well (example auto generated report https://github.com/apollographql/federation-jvm/pull/290#issuecomment-1397915584).

dariuszkuc avatar Jan 25 '23 16:01 dariuszkuc

Ah yes, a CLI. Makes sense! I'll see what I can do.

enisdenjo avatar Jan 26 '23 00:01 enisdenjo