jeudi 16 mars 2017

How to test a GraphQl API?

I need to write a functional test suite (that will test a GraphQl API). The test suite will be in a separate repo and container from the API.

One approach I thought of would be to use a BDD framework within the test suite. The suite would run all the BDD tests after receiving a HTTP request.

I was considering using Cucumber.js as the BDD framework. I know there is npm test. I am not sure how I will execute the tests. It feels a bit awkward to use a unit testing framework in this way. Does this approach make sense?

What tooling exists to do something like this? I am open to consider various languages and tools.

Aucun commentaire:

Enregistrer un commentaire