Skip to content

Nickheythatsme/graphql-api-test-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Example of a GraphQL API testing framework

This repository contains two possible test frameworks, one in Python and the other in Typescript (using Nodejs). They query an API to get details on star wars characters.

These tests use the GraphQL playground api, which can be found here.

Python

This implementation uses pytest and graphqlclient. To run the tests run:

cd python_implementation
pip3 install -r requirements.txt
pytest

Nodejs

This implementation uses Typescript, mocha, and axios. To run the tests run:

cd node_implementation
npm install
npm test

About

Proof of concept for creating graphql testing frameworks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published