graphql-engine/v3/lang-graphql/tests
Brandon Simmons 6c83ec7985 lang-graphql: add parser tests (#290)
Co-authored-by: Abhinav Gupta <127770473+abhinav-hasura@users.noreply.github.com>
V3_GIT_ORIGIN_REV_ID: d7b70a3cc70e6b9ead5867fd4b4fc56809878ebd
2024-01-30 17:42:44 +00:00
..
query_testdata lang-graphql: add parser tests (#290) 2024-01-30 17:42:44 +00:00
schema_testdata lang-graphql: add parser tests (#290) 2024-01-30 17:42:44 +00:00
testdata v3: open-source hasura v3 engine 2023-12-19 09:05:39 +00:00
LICENSE-MIT lang-graphql: add parser tests (#290) 2024-01-30 17:42:44 +00:00
parser_test.rs lang-graphql: add parser tests (#290) 2024-01-30 17:42:44 +00:00
README.md lang-graphql: add parser tests (#290) 2024-01-30 17:42:44 +00:00

  • testdata contains snapshot/golden test inputs and expectations for SDL parsing
  • query_testdata and schema_data were later added, but for executable documents and SDL respectively. Theses cases were copied from the apollo-rs project at 721e0753 and the license at lang-graphql/tests/LICENSE-MIT applies to these. Cases added subsequently are licensed under this project's top-level license.
  • some cases from the apollo lexer tests are copied with a 9xxx prefix
  • schema_data cases are currently unused (TODO if SDL parsing is important)

A few full parse() cases were also added from graphql-js tests although they were not numerous or very interesting. They are added starting at ok/1111_*

Some ok cases that are only valid for the 2021 spec were renamed to *.2021 and ignored.

TODO

  • the ok case output mostly has not been audited
  • We might port the old testdata cases to the framework taken from apollo since it is nicer.