Azure / Azure/data-api-builder

GraphQL: Refactor the GraphQL Query and Mutation Tests

Abierto
#226 5 comentarios 0 reacciones 1 asignado Reclamado por @seantleonard Ver en GitHub
graphql mssql pgsql mysql needs discussion pgsql refactor testing
Lenguaje dominante
C#
Estrellas
1.5k
Forks
370
Merge medio
3 d 22 h
PR fusionados (30 d)
9

Descripción

The GraphQL query and mutation tests have quite a bit of copy/paste in order to write for all data bases which is good sign that there is room for some refactoring of the test classes.

We can take a:
* GraphQL Pagination tests approach where we hard code the answers so the same code can test all the databases without the need to write specific queries for all the db-s. This might seem like it requires more work due to having to escape many `"` characters, but this can be done with some smart Find + Replace. This also introduces the overhead of keeping the hard coded data up to date.
* REST tests which share the requests across databases, but each database test class writes its own queries to fetch the right answers from the database.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.