~/talk

Testing GraphQL: From Zero To Hundred Percent

Talkat NDC Oslo 2019 · 2019-06-17..06-21· [graphql, testing]
slides:none on file

Practical roadmap for getting to 100% GraphQL test coverage: start with static typing (TypeScript) and unit tests, add integration tests that mock the schema or run an Apollo server with mocks (set mock: true) and exercise queries via Postman, then run end-to-end tests against a real test server. Demonstrates tools like EasyGraphQLTester, Apollo client/provider, Postman and a CodeSandbox full‑stack demo. Shows load testing (50 virtual users, ~1,050 requests in ~10s) and claims mocks plus type checks catch many issues before e2e.

AI-written summary · about

  1. 0:00Intro
  2. 1:31Why write tests?
  3. 1:59Check if errors and edge cases are handled correctly
  4. 3:38Improves your code quality
  5. 6:22Or test GraphQL client-side
  6. 7:35Testing client-side
  7. 10:06Test schemas
  8. 10:54And for bigger schemas?
  9. 13:54What about resolvers?
  10. 16:42Integration tests?
  11. 17:02With server mocking
  12. 18:17Together with Postman
  13. 23:37On the client-side
  14. 30:13And end-to-end testing?
  15. 37:34100% test coverage !== 0% bugs
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.